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
Script Help Candle trigger
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#2
RE: Candle trigger

You need to set a Local Variable Integer (SetLocalVarInt) then add it (AddLocalVarInt) then check it (If-Else code). The codes you need (it's not the full code. It's just the code to all three stuff) for all three.

Spoiler below!

For the Integer that adds up so that the checker can be done.
void OnStart()
{
SetLocalVarInt("Candles", 0);
//other codes....
}

For the Incrementer that adds the Integer values.
AddLocalVarInt("Candles", 1);

For the checker that checks the two candles.
if(GetLocalVarInt("Candles") == 2)
{
//function caller....
}

else
{
}


"Veni, vidi, vici."
"I came, I saw, I conquered."
08-10-2013, 11:17 AM
Find


Messages In This Thread
Candle trigger - by VillainousPotato - 08-10-2013, 03:04 AM
RE: Candle trigger - by PutraenusAlivius - 08-10-2013, 11:17 AM
RE: Candle trigger - by VillainousPotato - 08-10-2013, 07:40 PM
RE: Candle trigger - by Damascus - 08-10-2013, 10:55 PM
RE: Candle trigger - by VillainousPotato - 08-11-2013, 09:11 AM



Users browsing this thread: 1 Guest(s)