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
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#3
RE: Help with Global Variables

(12-01-2011, 09:05 AM)Obliviator27 Wrote: You need a global.hps file in the main custom story directory (The one with your extra_english and custom_story_settings.cfg file)
And it should look like


void OnGameStart()
{
Use SetGlobalVarInt as many times as you like, for as many global variables you like
}
And that's all there is to it. Smile
Does that mean that I put


Quote:void func_on()
{
if(GetGlobalVarInt("Globalvar1") == 1)
{
SetSwingDoorLocked("elevator_door_1", false, false);
}
}
under the void OnGameStart place? Once I've added the SetGlobalVarInt("GlobalVar1", 0); inside the void OnGameStart


(This post was last modified: 12-01-2011, 09:14 AM by flamez3.)
12-01-2011, 09:13 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)