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
VillainousPotato Offline
Member

Posts: 50
Threads: 13
Joined: Mar 2013
Reputation: 1
#3
RE: Candle trigger

(08-10-2013, 11:17 AM)JustAnotherPlayer Wrote: 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
{
}

so would i use an interaction callback to call the Adding function?

08-10-2013, 07:40 PM
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)