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
Help with Global Variables
Obliviator27 Offline
Posting Freak

Posts: 792
Threads: 10
Joined: Jul 2011
Reputation: 66
#4
RE: Help with Global Variables

It works like this.
void OnGameStart()
{
SetGlobalVarInt("Globalvar1", 0);
}
and then in your .hps
void func01()
{
if(GetGlobalVarInt("Globalvar1") == 1)
{
SetSwingDoorLocked("door_1", false, true);
}
}

(This post was last modified: 12-01-2011, 09:21 AM by Obliviator27.)
12-01-2011, 09:16 AM
Find


Messages In This Thread
Help with Global Variables - by flamez3 - 12-01-2011, 08:36 AM
RE: Help with Global Variables - by Obliviator27 - 12-01-2011, 09:05 AM
RE: Help with Global Variables - by flamez3 - 12-01-2011, 09:13 AM
RE: Help with Global Variables - by Obliviator27 - 12-01-2011, 09:16 AM
RE: Help with Global Variables - by Your Computer - 12-01-2011, 11:56 PM



Users browsing this thread: 1 Guest(s)