Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Introduced in

Version:1.00

Description

Description:Assigns a unit as the driver of a vehicle.
Used
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,
time in seconds
  • it
will stay
  • stays at the newly assigned position, before it moves back to the original position
,
  • (if
that
  • it is still available). If the position has been filled during the delay, the unit
will
  • then
stay
  • stays at the new position. If the delay is negative, the unit
will
  • 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