Frictional Games Forum (read-only)
Make a door close and lock behind you? - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Make a door close and lock behind you? (/thread-16187.html)



Make a door close and lock behind you? - NewAgeRetroHippie - 06-16-2012

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.


RE: Make a door close and lock behind you? - Damascus - 06-16-2012

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/amnesia/script_functions


RE: Make a door close and lock behind you? - NewAgeRetroHippie - 06-16-2012

Thank you so much!