Jump to content
anfo

Despawn many vehicles (array)

Recommended Posts

Hi Guys

 

If this does a single vehicle with crew

{deleteVehicle _x} forEach crew (vehicle this) + [(vehicle this)];

What would be the most efficient code for despawning many vehicles?

 

Thanks!

Share this post


Link to post
Share on other sites

bump?

Share this post


Link to post
Share on other sites

Not enough info here, do you want all vehicles on a side? in an area?

Share this post


Link to post
Share on other sites
fnc_deleteVeh = {

   {{deleteVehicle _x} forEach crew _x + [vehicle _x]}forEach _this;

};

[veh1,veh2,veh3,veh4,veh5,hunter1] call fnc_deleteVeh;

or

{{deleteVehicle _x} forEach crew _x + [vehicle _x]}forEach [veh1,veh2,veh3,veh4,veh5,hunter1];

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

×