deleteVehicleCrew: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|seealso= ([^ ]+)\]\], *\[\[" to "|seealso= $1]] [[")
m (Text replacement - "\|seealso= ([^ ]+)\]\], *\[\[" to "|seealso= $1]] [[")
Line 36: Line 36:
{ _helicopter deleteVehicleCrew _x } forEach crew _helicopter; // before v2.06</sqf>
{ _helicopter deleteVehicleCrew _x } forEach crew _helicopter; // before v2.06</sqf>


|seealso= ‎[[createVehicleCrew]] [[moveInDriver]] [[moveInGunner]] [[moveInCommander]] [[moveInTurret]] [[moveInCargo]], [[Arma_3:_Event_Handlers#Deleted | Deleted EH]]
|seealso= ‎[[createVehicleCrew]] [[moveInDriver]] [[moveInGunner]] [[moveInCommander]] [[moveInTurret]] [[moveInCargo]] [[Arma_3:_Event_Handlers#Deleted | Deleted EH]]
}}
}}



Revision as of 12:47, 1 July 2022

Hover & click on the images for description

Description

Description:
Deletes a member of the crew of a vehicle. Human players cannot be deleted. Since Arma 3 v2.06.147649 it is also possible to delete entire crew all in one sweep using alternative syntax.
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:
Object Manipulation

Syntax

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

Alternative Syntax

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

Examples

Example 1:
_helicopter deleteVehicleCrew driver _helicopter;
Example 2:
Delete entire crew:
deleteVehicleCrew _tank; // since v2.06 { _helicopter deleteVehicleCrew _x } forEach crew _helicopter; // before v2.06

Additional Information

See also:
createVehicleCrew moveInDriver moveInGunner moveInCommander moveInTurret moveInCargo Deleted EH

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
Killzone_Kid - c
Posted on Aug 31, 2014 - 10:15 (UTC)
If you delete the AI pilot with deleteVehicle driver heli the co-pilot will jump out.
If you delete the AI pilot with heli deleteVehicleCrew driver heli the co-pilot will stay.