Forum Jump :

Author Message


Posts: 2
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name: Colicious

 
#1 Posted at 2011-12-21 15:04        
     
I'm trying to activate a trigger whenever a helicopter is shot down (not necessarily when it explodes), but I can't seem to find the right code for the "Condition" line of the trigger. Using "!alive" only activates the trigger when the vehicle and its crew are dead and gone, but I also need to activate the trigger if the vehicle were to crash-land. Any ideas?


Author Message


Posts: 134
Rank:


Level: Member

Country: us
Location: Censored by Chuck Norris
Occupation: Why do you want to know? Stalker.....
Age: 115
In-game name: FuNKo1

 
#2 Posted at 2011-12-21 15:14        
     
(position heli select 2) < 2

It should activate when the helicopter is less than 2 meters above the ground

I Can't Think of a Creative Signature Right Now...

Advertisement


Author Message


Posts: 2
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name: Colicious

 
#3 Posted at 2011-12-21 15:21        
     
So far so good. Thanks a lot :)


Author Message


Posts: 1473
Rank:


Level: Member

Country: uk
Location:
Occupation:
Age:
In-game name:

 
#4 Posted at 2011-12-21 16:09        
     
place in triggers condition
!canMove heli and  {alive _x} count crew heli == 0 or count crew heli == 0

It checks to see if the heli is flyable and crew are dead or not in the chopper.

A simpler way would be
!canMove heli and getposATL heli select 0 < 1

The only problem if if the heli gets hung up on a roof.

(position heli select 2) < 2

Will also work as long as your heli is never going to land.