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
"SetGlobalVarInt" Problem
shadowZgamerZ Offline
Junior Member

Posts: 18
Threads: 3
Joined: Jul 2012
Reputation: 1
#2
RE: "SetGlobalVarInt" Problem

Try this:

void OnStart()
{
SetGlobalVarInt("LanternInt", 0);
}

void OnEnter()
{
if (GetGlobalVarInt("LanternInt") == 0)
{
SetLevelDoorLocked("level_dungeon_1", true);
}

if (GetGlobalVarInt("LanternInt") == 1)
{
SetLevelDoorLocked("level_dungeon_1", false);
}
//Watch out for these ones: ""
}

- I hope i didn't spell something wrong, because I am writing this on my phone! Hope this helped!

Project: Another Penumbra Story - Chapter 1 - Deep Underground
Level Editor: 18%, Scripting: 8%, Gameplay: 3 hours or more!
(This post was last modified: 08-22-2012, 09:42 PM by shadowZgamerZ.)
08-22-2012, 09:34 PM
Find


Messages In This Thread
"SetGlobalVarInt" Problem - by bjaffedj - 08-22-2012, 09:15 PM
RE: "SetGlobalVarInt" Problem - by shadowZgamerZ - 08-22-2012, 09:34 PM
RE: "SetGlobalVarInt" Problem - by bjaffedj - 08-22-2012, 09:48 PM



Users browsing this thread: 1 Guest(s)