Arma 3 Scripting

Command in Unit Control, Groups

leaveVehicle

Also available as Markdown and JSON, or read the original wiki page.

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:

leaveVehicle = un-addVehicle + unassignVehicle forEach crew

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.

Note

See AI Group Vehicle Management for more information.

Syntax

group leaveVehicle vehicle

Parameters:

Returns: Nothing

Examples

Example 1

_unit leaveVehicle _vehicle;

Example 2

_grp leaveVehicle _vehicle;

See also

addVehicle · assignAsCargo · assignAsCommander · assignAsDriver · assignAsGunner · assignedVehicle · unassignVehicle · doGetOut · commandGetOut · createVehicleCrew · assignedVehicles · assignedGroup · fullCrew

Community notes

Killzone_Kid

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.