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
How Can I Make a Trigger Activate Another Trigger?
Luis Offline
Frictional Games

Posts: 280
Threads: 19
Joined: Jun 2006
Reputation: 9
#11
RE: How Can I Make a Trigger Activate Another Trigger?

(09-18-2010, 10:20 AM)Deruu Wrote:
void CollideGruntDoorTrigger1(string &in asParent, string &in asChild, int alState)
{
    SetEntityActive("GruntTrigger1", true);
    AddEntityCollideCallback("Player", "GruntTrigger1", "ReplaceMe", true, 1);
    
    SetEntityActive("CloseDoorTrigger1", true);
    AddEntityCollideCallback("Player", "CloseDoorTrigger1", "ReplaceMe", true, 1);
}

Ah true, you must set up the collide callback in order for the SetEntityActive to work. I just assumed that was already done Smile Thanks Deruu

EOF
09-18-2010, 11:41 AM
Find


Messages In This Thread
RE: How Can I Make a Trigger Activate Another Trigger? - by Luis - 09-18-2010, 11:41 AM



Users browsing this thread: 1 Guest(s)