Jump to content
Sign in to follow this  
Victim9l3

Delete vehicle not crew

Recommended Posts

I've been using a trigger to delete a group of boats when I get to a certain point. The boats do get removed but the crews of the boats get out. How could I delete the vehicle and it's crew?

I'm trying to avoid creating crew separate from the boats and movein to the positions of the empty boats.

Thanks

Share this post


Link to post
Share on other sites

{deleteVehicle _x} forEach (crew *boat object name here*);

deleteVehicle *boat object name goes here*;

There might be a more efficient way of doing this, but that shouldn't matter too much unless you're super concerned about script performance.

Share this post


Link to post
Share on other sites
{deletevehicle _x;} foreach crew vehiclename;deletevehicle vehiclename;

will do the trick.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×