deleteVehicleCrew: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|seealso= ([^ ]+)\]\], *\[\[" to "|seealso= $1]] [[") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 10: | Line 10: | ||
|gr1= Object Manipulation | |gr1= Object Manipulation | ||
|descr= Deletes a member of the crew of a vehicle. Human players cannot be deleted | |descr= Deletes a member of or the whole crew of a vehicle. Human players cannot be deleted. | ||
{{Feature | | {{Feature|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 [[Multiplayer Scripting#Locality|local]] as moving units out of the vehicle happens where vehicle is [[Multiplayer Scripting#Locality|local]] and you want this to always precede deletion.}} | ||
|s1= vehicle [[deleteVehicleCrew]] unit | |s1= vehicle [[deleteVehicleCrew]] unit | ||
Line 32: | Line 32: | ||
|x2= Delete entire crew: | |x2= Delete entire crew: | ||
<sqf>deleteVehicleCrew _tank; // since v2.06 | <sqf> | ||
deleteVehicleCrew _tank; // since v2.06 | |||
{ _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]] | ||
Line 42: | Line 44: | ||
|user= Killzone_Kid | |user= Killzone_Kid | ||
|timestamp= 20140831101500 | |timestamp= 20140831101500 | ||
|text= If you delete the AI pilot with | |text= If you delete the AI pilot with <sqf inline>deleteVehicle driver heli</sqf> the co-pilot will jump out.<br> | ||
If you delete the AI pilot with | If you delete the AI pilot with <sqf inline>heli deleteVehicleCrew driver heli</sqf> the co-pilot will stay. | ||
}} | }} |
Revision as of 15:34, 27 July 2022
Description
- Description:
- Deletes a member of or the whole 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
Alternative Syntax
- Syntax:
- deleteVehicleCrew vehicle
- Parameters:
- vehicle: Object
- Return Value:
- Nothing
Examples
- Example 1:
- Example 2:
- Delete entire crew:
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
- 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.