deleteVehicleCrew: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Some wiki formatting) |
Lou Montana (talk | contribs) (Add objectParent information) |
||
(One intermediate revision by the same user not shown) | |||
Line 29: | Line 29: | ||
|r2= [[Nothing]] | |r2= [[Nothing]] | ||
|x1= <sqf>_helicopter deleteVehicleCrew driver _helicopter;</sqf> | |x1= <sqf> | ||
// delete when knowing the vehicle | |||
_helicopter deleteVehicleCrew driver _helicopter; | |||
// delete when only knowing the unit | |||
// vehicle _soldier deleteVehicleCrew _soldier; // may return the unit itself when used on dead crew | |||
objectParent _soldier deleteVehicleCrew _soldier; // faster and always returns the vehicle | |||
</sqf> | |||
|x2= Delete entire crew: | |x2= Delete entire crew: | ||
Line 38: | Line 45: | ||
</sqf> | </sqf> | ||
|seealso= | |seealso= [[createVehicleCrew]] [[moveInDriver]] [[moveInGunner]] [[moveInCommander]] [[moveInTurret]] [[moveInCargo]] [[Arma_3:_Event_Handlers#Deleted | Deleted EH]] | ||
}} | }} | ||
Latest revision as of 17:02, 18 September 2023
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:
- // delete when knowing the vehicle _helicopter deleteVehicleCrew driver _helicopter; // delete when only knowing the unit // vehicle _soldier deleteVehicleCrew _soldier; // may return the unit itself when used on dead crew objectParent _soldier deleteVehicleCrew _soldier; // faster and always returns the vehicle
- 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.