Frictional Games Forum (read-only)

Full Version: Make a door close and lock behind you?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm working on a custom story, and I need to know how to make a door close and lock behind you when you've walked through it. I know that I need to place a script area, but other than that, I'm clueless.
Add a collide callback for the script area, and then call the functions SetSwingDoorClosed and SetSwingDoorLocked. If you don't know how to write those, you can find them here:

http://wiki.frictionalgames.com/hpl2/amn..._functions
Thank you so much!