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
Having a slight problem...
Tomato Cat Offline
Senior Member

Posts: 287
Threads: 2
Joined: Sep 2012
Reputation: 20
#2
RE: Having a slight problem...

Try doing something like this:

PHP Code: (Select All)
OnStart()
{

//Sets up variable
SetLocalVarInt("OrbCheck",0);

}

...

void TurnRed()
{
...
//Adds local variable, checks if the other knife has been used
AddLocalVarInt("OrbCheck",1);
OrbCheckFunction();
}

void TurnRed2()
{
...
//Adds local variable, checks if other knife has been used
AddLocalVarInt("OrbCheck",1);
OrbCheckFunction();
}

void OrbCheckFunction()
{
//This function checks if both knives have been used
if(GetLocalVarInt("OrbCheck") == 2)
{
SetEntityActve("Orb",true);
}



Eh, that looks pretty rough and I haven't tested, but I hope it gives you a general idea.

RAISE YOUR DONGERS ヽ༼ຈل͜ຈ༽ノ
04-23-2013, 04:54 PM
Find


Messages In This Thread
Having a slight problem... - by TrollingForever - 04-23-2013, 04:26 PM
RE: Having a slight problem... - by Tomato Cat - 04-23-2013, 04:54 PM
RE: Having a slight problem... - by immaturegames - 04-23-2013, 05:13 PM
RE: Having a slight problem... - by Tomato Cat - 04-23-2013, 05:16 PM
RE: Having a slight problem... - by Tomato Cat - 04-23-2013, 05:26 PM
RE: Having a slight problem... - by Tomato Cat - 04-23-2013, 05:44 PM
RE: Having a slight problem... - by Tomato Cat - 04-23-2013, 05:51 PM



Users browsing this thread: 1 Guest(s)