deleteVehicleCrew: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma3 | | arma3 | ||
|1.32 | |1.32 | ||
|arg= global | |arg= global | ||
|eff= global | |eff= global | ||
|gr1= Object Manipulation | |gr1= Object Manipulation | ||
| Deletes a member of the crew of a vehicle. Human players cannot be deleted.<br><br> | | 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.}} | {{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.}} | ||
| vehicle [[deleteVehicleCrew]] unit | | vehicle [[deleteVehicleCrew]] unit | ||
|p1= vehicle: [[Object]] | |p1= vehicle: [[Object]] | ||
|p2= unit: [[Object]] | |p2= unit: [[Object]] | ||
| [[Nothing]] | | [[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> | ||
| [[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]] | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= |
Revision as of 00:27, 18 January 2021
Description
- Description:
- Deletes a member of the crew of a vehicle. Human players cannot be deleted.
- Groups:
- Object Manipulation
Syntax
- Syntax:
- vehicle deleteVehicleCrew unit
- Parameters:
- vehicle: Object
- unit: Object
- Return Value:
- Nothing
Examples
- Example 1:
_helicopter deleteVehicleCrew driver _helicopter;
- Example 2:
{ _helicopter deleteVehicleCrew _x } forEach crew _helicopter; // deletes all crew
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
Notes
- 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 withheli deleteVehicleCrew driver heli
the co-pilot will stay.