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?
Ongka Offline
Member

Posts: 225
Threads: 3
Joined: Nov 2010
Reputation: 20
#8
RE: Making a lever unlock a door?

SetGlobalVarInt("Ongka", 1); // This creates a number called Ongka, which has the value 1.
if(GetGlobalVarInt("Ongka") == 1) // == means equal to; this functions asks if the number Ongka has the value 1. If you didn't set the value to 1, nothing will happen. Global vars can be used in other levels too.

[Image: 18694.png]
08-04-2012, 04:34 AM
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 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)