Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 4 Vote(s) - 3.75 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scripting n00b in need of help.
Akumasama Offline
Member

Posts: 122
Threads: 2
Joined: Nov 2010
Reputation: 0
#20
RE: Scripting n00b in need of help.

Well that didn't quite work...

SetSwingDoorLocked("doorlantern", false, false);
AddPropForce("doorlantern", 1, 1, 1, "");
Thats what I have at the moment...
I have also tried "World" instead of "".
Also tried different values at the coordinates.

I have also tried SetSwingDoorClosed("doorlantern", false, false).
It didn't work.
This is used by the Frictional Games, as far as I've seen.

void OnStart()
{  
AddEntityCollideCallback("Player", "scaretrigger", "scareactivate", true, 1);
SetEntityCallbackFunc("lantern", "lanterndooractivate");
SetSwingDoorDisableAutoClose("doorlantern", true);
}

void scareactivate(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("scaremonster", true);
AddEnemyPatrolNode("scaremonster", "scaremonsterpath1", 0, "");
}

void lanterndooractivate(string &in entity, string &in type)
{
SetSwingDoorLocked("doorlantern", false, false);
AddPropForce("doorlantern", 1, 1, 1, "World");
}

Just posting this too if it helps.

EDIT: I noticed that the door only unlocks, but still auto-closes...
That's kinda vague if you ask me.
Does anyone know what could be it? :/
(This post was last modified: 11-14-2010, 02:16 AM by Akumasama.)
11-14-2010, 02:08 AM
Find


Messages In This Thread
Scripting n00b in need of help. - by Akumasama - 11-13-2010, 12:59 AM
RE: Scripting n00b in need of help. - by Cellrage - 11-13-2010, 01:37 AM
RE: Scripting n00b in need of help. - by Chilton - 11-13-2010, 03:02 AM
RE: Scripting n00b in need of help. - by Chilton - 11-13-2010, 02:52 PM
RE: Scripting n00b in need of help. - by Chilton - 11-13-2010, 03:15 PM
RE: Scripting n00b in need of help. - by Chilton - 11-13-2010, 03:41 PM
RE: Scripting n00b in need of help. - by anzki - 11-13-2010, 05:42 PM
RE: Scripting n00b in need of help. - by Akumasama - 11-14-2010, 02:08 AM
RE: Scripting n00b in need of help. - by Cellrage - 11-14-2010, 03:08 AM
RE: Scripting n00b in need of help. - by Chilton - 11-14-2010, 03:33 AM
RE: Scripting n00b in need of help. - by Cellrage - 11-14-2010, 03:37 AM



Users browsing this thread: 1 Guest(s)