Frictional Games Forum (read-only)
[SCRIPT] Door locks behind you! [Solved] - 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: [SCRIPT] Door locks behind you! [Solved] (/thread-24450.html)



Door locks behind you! [Solved] - ethics - 01-24-2014

So i wanted to do a script event:
If you go into a certain room. the door will slam shut behind you.
I have already done that.

But now I wanted to lock the door behind you so you can't escape the room anymore and have to search for another way (in my case a hatch in the ground).

I found nothing related to this on the internet. I don't know many script commands, just getting started with my first custom story.

I hope you can help me!


RE: Door locks behind you! - daortir - 01-24-2014

So you just need to set a door locked, everything else works ?
SetSwingDoorLocked("name of the door in the editor", true, true); is the code that you are looking for, a ccording to this page :

http://wiki.frictionalgames.com/hpl2/amnesia/script_functions


RE: Door locks behind you! - ethics - 02-03-2014

(01-24-2014, 05:43 PM)daortir Wrote: So you just need to set a door locked, everything else works ?
SetSwingDoorLocked("name of the door in the editor", true, true); is the code that you are looking for, a ccording to this page :

http://wiki.frictionalgames.com/hpl2/amnesia/script_functions

yeah i just added SetSwingDoorLocked("door1" , ...) behind the SetSwingDoorClosed("door1" , ...)
Thanks anyways.


RE: Door locks behind you! - ethics - 02-15-2014

(01-24-2014, 05:43 PM)daortir Wrote: So you just need to set a door locked, everything else works ?
SetSwingDoorLocked("name of the door in the editor", true, true); is the code that you are looking for, a ccording to this page :

http://wiki.frictionalgames.com/hpl2/amnesia/script_functions

Oh also I played Collapsing Cosmos. It was truly awesome!
Some very well done work you did there.
Hoping for more amazing content from you in the future!


RE: Door locks behind you! - daortir - 02-15-2014

Glad you liked it : ) !

I'll do the best I can to make some good mods in the future ! Your support means a lot : )