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
Make a door close and lock behind you?
NewAgeRetroHippie Offline
Junior Member

Posts: 2
Threads: 1
Joined: Jun 2012
Reputation: 0
#1
Make a door close and lock behind you?

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.
06-16-2012, 05:59 AM
Find
Damascus Offline
Senior Member

Posts: 646
Threads: 118
Joined: Mar 2012
Reputation: 29
#2
RE: Make a door close and lock behind you?

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

06-16-2012, 06:41 AM
Find
NewAgeRetroHippie Offline
Junior Member

Posts: 2
Threads: 1
Joined: Jun 2012
Reputation: 0
#3
RE: Make a door close and lock behind you?

Thank you so much!
06-16-2012, 09:53 AM
Find




Users browsing this thread: 1 Guest(s)