leaveVehicle: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(it is a group command so removed from unit control for clarity)
No edit summary
Line 19: Line 19:
|gr1= Groups
|gr1= Groups


|descr= Ceases the using of the vehicle by a group and unassigns vehicle from the group.
|descr= Ceases the using of the vehicle by a [[Group]] and unassigns vehicle from the [[Group]].
If the argument is a single unit, the vehicle will be unassigned from unit's group.
If the argument is a single unit, the vehicle will be unassigned from unit's group.
After vehicle is unassigned from the group, each individual crew member then unassigned from the vehicle.<br>
After vehicle is unassigned from the group, each individual crew member then unassigned from the vehicle.<br>

Revision as of 11:29, 30 August 2022

Hover & click on the images for description

Description

Description:
Ceases the using of the vehicle by a Group and unassigns vehicle from the Group. If the argument is a single unit, the vehicle will be unassigned from unit's group. After vehicle is unassigned from the group, each individual crew member then unassigned from the vehicle.

In short the command could be hypothetically presented as:
However, to make it more reliable, it is best to move unit out of the vehicle manually with moveOut and force unassign the vehicle with unassignVehicle.
See AI Group Vehicle Management for more information.
Groups:
Groups

Syntax

Syntax:
unitOrGroup leaveVehicle vehicle
Parameters:
unitOrGroup: Group or Object, in which case, object's Group is used
vehicle: Object
Return Value:
Nothing

Examples

Example 1:
_unit leaveVehicle _vehicle;
Example 2:
_grp leaveVehicle _vehicle;

Additional Information

See also:
addVehicle assignAsCargo assignAsCommander assignAsDriver assignAsGunner assignedVehicle unassignVehicle doGetOut commandGetOut createVehicleCrew

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
Killzone_Kid - c
Posted on Aug 31, 2013 - 16:08 (UTC)
In Arma 3 this command will not force a player to exit from a vehicle. It will unassign vehicle role for this player. AI crew however will also disembark.