deleteVehicleCrew: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<dl class='command_description'>" to "<dl class="command_description">")
No edit summary
Line 21: Line 21:


| [[Nothing]]
| [[Nothing]]
|s2= [[deleteVehicleCrew]] vehicle {{Since|arma3|2.06.147649|y}}
|p21= vehicle: [[Object]]
|r2= [[Nothing]]


|x1= <code>_helicopter [[deleteVehicleCrew]] [[driver]] _helicopter;</code>
|x1= <code>_helicopter [[deleteVehicleCrew]] [[driver]] _helicopter;</code>


|x2= <code>{ _helicopter [[deleteVehicleCrew]] _x } [[forEach]] [[crew]] _helicopter; {{cc|deletes all crew}}</code>
|x2= <code>{ _helicopter [[deleteVehicleCrew]] _x } [[forEach]] [[crew]] _helicopter; {{cc|deletes all crew}}</code>
|x3= Delete entire crew:<code>[[deleteVehicleCrew]] _tank;</code>


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

Revision as of 20:18, 21 May 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Object Manipulation

Syntax

Syntax:
Syntax needed
Parameters:
vehicle: Object
unit: Object
Return Value:
Return value needed

Alternative Syntax

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

Examples

Example 1:
_helicopter deleteVehicleCrew driver _helicopter;
Example 2:
{ _helicopter deleteVehicleCrew _x } forEach crew _helicopter; // deletes all crew
Example 3:
Delete entire crew:deleteVehicleCrew _tank;

Additional Information

See also:
See also needed

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
Posted on August 31, 2014 - 10:15 (UTC)
Killzone Kid
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.