deleteVehicleCrew: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(format)
(for deleting the dead crew)
Line 10: Line 10:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Deletes a member of the crew of a vehicle. Human players cannot be deleted. |= Description
| Deletes a member of the crew of a vehicle. Human players cannot be deleted.<br><br>
{{Informative | This command attempts to move the given [[crew]] member out before deleting it. Made especially for deleting dead crew members, as using conventional [[deleteVehicle]] leads to all sorts of bugs and ghost objects. While the argument is global, you should take extra steps and execute this where vehicle is [[local]] as moving units out of the vehicle happens where vehicle is [[local]] and you want this to always precede deletion. }} |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 15:08, 15 September 2018

Hover & click on the images for description

Description

Description:
Deletes a member of the crew of a vehicle. Human players cannot be deleted.

This command attempts to move the given crew member out before deleting it. Made especially for deleting dead crew members, as using conventional deleteVehicle leads to all sorts of bugs and ghost objects. While the argument is global, you should take extra steps and execute this where vehicle is local as moving units out of the vehicle happens where vehicle is local and you want this to always precede deletion.
Groups:
Uncategorised

Syntax

Syntax:
vehicle deleteVehicleCrew unit
Parameters:
vehicle: Object
unit: Object
Return Value:
Nothing

Examples

Example 1:
heli deleteVehicleCrew driver heli;

Additional Information

See also:
createVehicleCrewmoveInDrivermoveInGunnermoveInCommandermoveInTurretmoveInCargo

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section

Posted on August 31, 2014 - 10:15 (UTC)
Killzone Kid
Not quite sure of the exact use of this command. You can delete AI pilot for example with deleteVehicle driver heli; but co-pilot will then jump out. If you use heli deleteVehicleCrew driver heli; co-pilot stays.
Posted on April 10, 2015 - 13:43 (UTC)
Tankbuster
Using the following code will remove ALL crew from the given vehicle. {_myvehicle deleteVehicleCrew _x} forEach crew _myvehicle;