Frictional Games Forum (read-only)

Full Version: Door locks behind you! [Solved]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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!
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/amn..._functions
(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/amn..._functions

yeah i just added SetSwingDoorLocked("door1" , ...) behind the SetSwingDoorClosed("door1" , ...)
Thanks anyways.
(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/amn..._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!
Glad you liked it : ) !

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