Forum Jump :

Author Message


Posts: 11
Rank:


Level: Member

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

 
#1 Posted at 2011-09-18 19:06        
     
Hi guys,

I'm trying to make a unit be destroyed/despawned after a trigger is activated.
This will be used to remove the chopper that drops you off. I want to remove it, to save precious CPU power.

Thanks,
laulie


Author Message

palyarmerc  

I live inside the editor


Posts: 753
Rank:


Level: Member

Country: uk
Location:
Occupation: *Retired from ArmA*
Age:
In-game name: Paly

 
#2 Posted at 2011-09-18 19:22        
     
{{deletevehicle _x}foreach crew _x;}foreach units helo3;deletevehicle helo3;
alternatively
{deleteVehicle _x} forEach ([helo3] + crew helo3);
...given vehicle name is helo3

....that's all folks....!

Advertisement


Author Message


Posts: 11
Rank:


Level: Member

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

 
#3 Posted at 2011-09-18 19:35        
     
Nice, thankyou, i will try it now:)

Added 7 minutes later:

Done, thankyou, question answered

This post was edited by laulie (2011-09-18 19:43, ago)


Author Message


Posts: 2
Rank:


Level: Member

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

 
#4 Posted at 2018-01-15 03:03        
     
# palyarmerc : {{deletevehicle _x}foreach crew _x;}foreach units helo3;deletevehicle helo3;
alternatively
{deleteVehicle _x} forEach ([helo3] + crew helo3);
...given vehicle name is helo3

Thank You For This *DRINK*