Page tree
Skip to end of metadata
Go to start of metadata


Introduced in

Version:2.00

Description

Description:Ceases the use of the vehicle by either a unit or a group. The vehicle is unassigned, and the unit does not try to re-enter it.

In version before V1.70, ordering a single unit that is part of a group to leave the vehicle may have inconsistent results in some cases, causing the whole group to exit; or in other cases, having no effect at all, depending on whether the player is the group leader, the type of vehicle, and the type of position the leaving unit occupies. In V1.70+, this has been corrected, and only the specified unit leaves, no matter the circumstances.

Syntax

Syntax:unit leaveVehicle vehicle
Parameters:
  • unit: Unit or Group - The unit or group to leave the vehicle.
  • vehicle: Object - Affected vehicle.
Return Value:Nothing

Examples

Examples:soldierOne leaveVehicle jeepOnegroupOne leaveVehicle jeepOne

Additional Information

See also: unassignVehicle, assignAsDriver
Multiplayer: 
Problems: 

Notes