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


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What does that mean?
Cruzore Offline
Senior Member

Posts: 301
Threads: 2
Joined: Jun 2012
Reputation: 37
#3
RE: What does that mean?

You need even more than that, or the door closes right when you actually enter the map. Actually, that's even the wrong command. For first, I'll point you to a site on the wiki. It has every thing you need:
http://wiki.frictionalgames.com/hpl2/amn..._functions
use ctrl + f to search for a command. search for setswingdoorclosed to see a explanation what asname, aslocked etc. means.
Now for the close behind you part:

place a script area at which point the door should close.

then, add this to OnStart():

AddEntityCollideCallback("Player", "yourscriptareanamehere", "CloseDoorFunc", true, 1);

Then, add this anywhere not inside a function:

void CloseDoorFunc(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorLocked("Doornamehere", true, true);
}

Maybe you can use some sounds for the slam, and some sanity drain.
(This post was last modified: 06-23-2012, 04:57 PM by Cruzore.)
06-23-2012, 04:56 PM
Find


Messages In This Thread
What does that mean? - by Jagsrs28 - 06-23-2012, 04:02 PM
RE: What does that mean? - by Wrathborn771 - 06-23-2012, 04:47 PM
RE: What does that mean? - by Cruzore - 06-23-2012, 04:56 PM
RE: What does that mean? - by Jagsrs28 - 06-23-2012, 05:12 PM
RE: What does that mean? - by Cruzore - 06-23-2012, 05:15 PM
RE: What does that mean? - by Jagsrs28 - 06-23-2012, 06:46 PM
RE: What does that mean? - by Unearthlybrutal - 06-23-2012, 06:50 PM
RE: What does that mean? - by Cruzore - 06-23-2012, 07:26 PM
RE: What does that mean? - by Adny - 06-23-2012, 08:36 PM
RE: What does that mean? - by MaZiCUT - 06-23-2012, 08:37 PM
RE: What does that mean? - by Cruzore - 06-23-2012, 08:39 PM



Users browsing this thread: 1 Guest(s)