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
Making a lever unlock a door?
Obliviator27 Offline
Posting Freak

Posts: 792
Threads: 10
Joined: Jul 2011
Reputation: 66
#2
RE: Making a lever unlock a door?

You should use a
SetEntityConnectionStateChangeCallback

Along with SetGlobalVarInt.
Then, when entering the map with the door, use an if statement to determine if the global variable has been changed to 1(or whatever you changed it to when you pulled the lever) and then set the door to unlocked if it evaluates to true.

07-13-2012, 08:18 PM
Find


Messages In This Thread
Making a lever unlock a door? - by Wyz - 07-13-2012, 05:14 PM
RE: Making a lever unlock a door? - by Obliviator27 - 07-13-2012, 08:18 PM
RE: Making a lever unlock a door? - by Wyz - 07-13-2012, 08:40 PM
RE: Making a lever unlock a door? - by Ongka - 07-13-2012, 08:42 PM
RE: Making a lever unlock a door? - by Ongka - 08-04-2012, 04:34 AM



Users browsing this thread: 3 Guest(s)