Forum Jump :

Author Message


Posts: 104
Rank:


Level: Member

Country: au
Location: Blue Mountains, NSW
Occupation:
Age:
In-game name:

 
#1 Posted at 2009-08-15 05:21        
     
I recently tried to deleteVehicle units while they were cargo in a vehicle, and found that the command failed.

Does anyone know how to delete units when inside a vehicle? I tried a doGetOut and even an "eject" action prior to deletion, but no joy.

Any ideas?


Author Message


Posts: 1522
Rank:


Level: Member

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

 
#2 Posted at 2009-08-15 13:26        
     
This may do it if placed in the vehicles waypoint
{  _x action ["eject", vehicle _x]; [_x] allowGetIn false } forEach units this;

If you want it in a trigger then make the cargo into a group.
{  _x action ["eject", vehicle _x]; [_x] allowGetIn false } forEach units grpname;


This may also do it but everyone gets out,the driver will get back in though
groupname leaveVehicle truckname 

This post was edited by F2kSel (2009-08-15 13:43, ago)