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
Variables?
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#3
RE: Variables?

It does. Here you go, edit it to fit what you're doing:

void OnStart()
{
     AddEntityCollideCallback("Player", "ScriptArea_1", "Func01", true, 1);
     AddEntityCollideCallback("Player", "ScriptArea_2", "Func01", true, 1);
     SetLocalVarInt("Var01", 0);
}
void Func01(string &in asParent, string &in asChild, int alState)
{
     AddLocalVarInt("Var01", 1);
     Func02();
}
void Func02()
{
     if (GetLocalVarInt("Var01") == 2)
     {
          // Do whatever you want after the player collides with both areas.
     }
}

Or was I mistaken? :/

(This post was last modified: 07-21-2011, 08:42 PM by Kyle.)
07-21-2011, 08:41 PM
Find


Messages In This Thread
Variables? - by JoeBradleyUK - 07-21-2011, 08:23 PM
RE: Variables? - by MrCookieh - 07-21-2011, 08:41 PM
RE: Variables? - by JoeBradleyUK - 07-21-2011, 08:44 PM
RE: Variables? - by Kyle - 07-21-2011, 08:41 PM
RE: Variables? - by MrCookieh - 07-21-2011, 08:51 PM
RE: Variables? - by JoeBradleyUK - 07-21-2011, 08:56 PM
RE: Variables? - by MrCookieh - 07-21-2011, 08:58 PM
RE: Variables? - by JoeBradleyUK - 07-21-2011, 09:00 PM



Users browsing this thread: 1 Guest(s)