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] - Area Collide Script Activation
Rokotain Offline
Member

Posts: 54
Threads: 9
Joined: Jul 2011
Reputation: 0
#3
RE: [Solved] - Area Collide Script Activation

Thank you for the helpful links Smile !

I'm becomming more adept to this with time.
Such as now, I have this:

void OnStart()
{
AddEntityCollideCallback("Player", "AreaActivateLookGrunt", "ActivateLookGrunt", true, 1);
}


void ActivateLookGrunt(string &in asParent, string &in asChild, int alState)
{
    SetEntityActive("AreaLookGrunt", true);
AddEntityCollideCallback("Player", "AreaLookGrunt", "LookAtGrunt", true, 1);
}

void LookAtGrunt(string &in asParent, string &in asChild, int alState)
{
    SetEntityActive("ghostgrunt", true);
}

It works very well and this is what I was looking for.
I posted it here in case someone else needing help for this^^

Thanks again Angel
07-21-2011, 05:27 PM
Find


Messages In This Thread
RE: [Solved] - Area Collide Script Activation - by Rokotain - 07-21-2011, 05:27 PM



Users browsing this thread: 1 Guest(s)