[Snippet] Deleting a vehicle + crew on waypoint activation

Party-approved programming
Post Reply
User avatar
wolfenswan
Posts: 1209
Joined: Wed May 25, 2011 4:59 pm

[Snippet] Deleting a vehicle + crew on waypoint activation

Post by wolfenswan »

This code snippete deletes the vehicle and it's entire crew. Useful for getting rid of for example insertion helicopters or ambient vehicles that haves served their purpose:

Code: Select all

{deleteVehicle _x} forEach thislist + [vehicle (thislist select 0)] + crew (vehicle (thislist select 0));
code goes in the On Act. field of the waypoint.

Post Reply