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


Introduced in

Version:1.00

Description

Description:Assigns a unit as the driver of a vehicle. Use together with orderGetIn to order a unit to get in as driver.

Syntax

Syntax:unit assignAsDriver vehicle
Parameters:
Return Value:Nothing

Alternative Syntax

Syntax:unit assignAsDriver [vehicle, delay]
Parameters:
  • unit: Object - The unit.
  • vehicle: Object - The vehicle.
  • delay: Number - Time in seconds. If the unit already has an assigned vehicle role, it stays at the newly assigned position, before it moves back to the original position (if it is still available). If the position has been filled during the delay, the unit then stays at the new position. If the delay is negative, the unit always stay at new position.
Return Value:Nothing

Examples

Examples:
_soldier1 assignAsDriver _tank
[_soldier1] orderGetIn true

Additional Information

See also: assignAsCommander, assignAsGunner, assignAsCargo, moveInDriver
Multiplayer: 
Problems: 

Notes