Jump to content
Sign in to follow this  
Tankieboy2

Delete Aircraft

Recommended Posts

I have a mission where I have troops dropped by aicraft via a script. Problem is that once the squads are dropped and on the ground they run around trying to get back in the airborne aircraft! Im using the moveincargo command and High Command Module. Can someone tell me how to delete these aircraft and their pilots/crew at a waypoint please to stop the squads running about the map trying to get back in them!

Share this post


Link to post
Share on other sites

As Gnat said, if for some reason you had your transport units grouped with their transport vehicle, you'll need to unassign them. (Should have done that as part of them getting out).

Then to delete the vehicle and remaining crew just:

{deleteVehicle _x} forEach crew vehicleName + [vehicleName];

Share this post


Link to post
Share on other sites

Thanks for the reply. I was looking for more for a delete plane, truck, etc at a waypoint as i dont want it showing up in High Command.

Share this post


Link to post
Share on other sites

Use what kylania said in his post. Just set the code as the On Acct: for the last Waypoint

{deleteVehicle _x} forEach crew vehicleName + [vehicleName];

Share this post


Link to post
Share on other sites

Guys, thats strange ... he is right, ive tried it too and not working.

I have named the jet I want to delete "jet1" then with this in the last waypoint On Acct:

{deleteVehicle _x} forEach crew jet1 + [jet1];

And still isnt deleting ... :eek:

The way ive always done it is like this:

{deleteVehicle _x} forEach (crew jet1); deleteVehicle jet1

Name the plane "jet1" and put the above code in the On Acct of the last way point. It works! :)

Edited by DarkXess

Share this post


Link to post
Share on other sites

{deleteVehicle _x} forEach (crew jet1); deleteVehicle jet1

+1 for that method!

binary addition is a depreciated method of adding to an array, due to the performance impact.

Edited by Rocket

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  

×