Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I'm back, with a new custom story and another question! [SOLVED]
Anxt Offline
Senior Member

Posts: 588
Threads: 12
Joined: Mar 2011
Reputation: 10
#9
RE: I'm back, with a new custom story and another question!

Ok, here's what you do:

Since you already have your GlobalVarInt set up, use an if statement in your hallway map to unlock the door. So, for example:

void OnEnter()
{
if(GetGlobalVarInt("LanternVar")==1)
{ SetLevelDoorLocked(blahblahblah);
}
}

Here's where I suspect the problem is: You have your LanternVar set to 1 at the start of the game. Set it to 0. Then, when you get the lantern, adding 1 to it will make it 1, thus making the function I have outlined for you above work properly. Hope that helped Smile

07-27-2011, 01:06 AM
Find


Messages In This Thread
RE: I'm back, with a new custom story and another question! - by Anxt - 07-27-2011, 01:06 AM



Users browsing this thread: 1 Guest(s)