deleteVehicleCrew: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \|([ps][0-9]+) *= " to " |$1= ") |
Lou Montana (talk | contribs) m (Fix examples) |
||
Line 31: | Line 31: | ||
|x1= <code>_helicopter [[deleteVehicleCrew]] [[driver]] _helicopter;</code> | |x1= <code>_helicopter [[deleteVehicleCrew]] [[driver]] _helicopter;</code> | ||
|x2= <code> | |x2= Delete entire crew: | ||
<code>[[deleteVehicleCrew]] _tank; {{cc|since v2.06}} | |||
{ _helicopter [[deleteVehicleCrew]] _x } [[forEach]] [[crew]] _helicopter; {{cc|before v2.06}}</code> | |||
|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]] | ||
}} | }} | ||
{{Note | |||
|user= Killzone_Kid | |||
|timestamp= 20140831101500 | |||
|text= If you delete the AI pilot with {{ic|[[deleteVehicle]] [[driver]] heli}} the co-pilot will jump out.<br> | |||
If you delete the AI pilot with {{ic|[[deleteVehicle]] [[driver]] heli}} the co-pilot will jump out.<br> | |||
If you delete the AI pilot with {{ic|heli [[deleteVehicleCrew]] [[driver]] heli}} the co-pilot will stay. | If you delete the AI pilot with {{ic|heli [[deleteVehicleCrew]] [[driver]] heli}} the co-pilot will stay. | ||
}} | |||
Revision as of 20:04, 5 March 2022
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.
- 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:
- createVehicleCrewmoveInDrivermoveInGunnermoveInCommandermoveInTurretmoveInCargo 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
- 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 withheli deleteVehicleCrew driver heli
the co-pilot will stay.