deleteVehicleCrew: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \| *(game[0-9]|version[0-9]|gr[0-9]|serverExec|mp|pr|descr|s[0-9]|p[0-9]{1,3}|r[0-9]|x1?[0-9]|seealso) *= +" to " |$1= ") |
Lou Montana (talk | contribs) |
||
Line 11: | Line 11: | ||
|descr= 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. | |descr= 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. | ||
{{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 [[local]] as moving units out of the vehicle happens where vehicle is [[local]] and you want this to always precede deletion.}} | {{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 |
Revision as of 17:09, 21 June 2021
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 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:
- 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 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.