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
[SOLVED]After 3 Area Collides, something should happen
Pandemoneus Offline
Senior Member

Posts: 328
Threads: 2
Joined: Sep 2010
Reputation: 0
#2
RE: After 3 Area Collides, something should happen

void OnStart()
{
AddEntityCollideCallback("Player", "Area1", "TaDa", true, 1);
AddEntityCollideCallback("Player", "Area2", "TaDa", true, 1);
AddEntityCollideCallback("Player", "Area3", "TaDa", true, 1);
}

void TaDa(string &in asParent, string &in asChild, int alState)
{
AddLocalVarInt("counter", 1);
if (GetLocalVarInt("counter") >= 3) {
// awesome stuff happens
}
}

03-13-2011, 07:18 PM
Find


Messages In This Thread
RE: After 3 Area Collides, something should happen - by Pandemoneus - 03-13-2011, 07:18 PM



Users browsing this thread: 3 Guest(s)