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
Script Help Door locks behind you! [Solved]
ethics Offline
Member

Posts: 51
Threads: 18
Joined: Jan 2014
Reputation: 0
#1
Door locks behind you! [Solved]

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!

(This post was last modified: 05-10-2014, 10:31 AM by ethics.)
01-24-2014, 05:39 PM
Find
daortir Offline
Senior Member

Posts: 422
Threads: 9
Joined: Sep 2013
Reputation: 18
#2
RE: Door locks behind you!

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
Find
ethics Offline
Member

Posts: 51
Threads: 18
Joined: Jan 2014
Reputation: 0
#3
RE: Door locks behind you!

(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.

02-03-2014, 11:19 AM
Find
ethics Offline
Member

Posts: 51
Threads: 18
Joined: Jan 2014
Reputation: 0
#4
RE: Door locks behind you!

(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!

02-15-2014, 08:35 PM
Find
daortir Offline
Senior Member

Posts: 422
Threads: 9
Joined: Sep 2013
Reputation: 18
#5
RE: Door locks behind you!

Glad you liked it : ) !

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

02-15-2014, 09:55 PM
Find




Users browsing this thread: 1 Guest(s)