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


Introduced in

Version:1.00

Description

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

Syntax

Syntax:unit assignAsCommander vehicle
Parameters:
Return Value:Nothing

Alternative Syntax

Syntax:unit assignAsCommander [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 assignAsCommander _tank
[_soldier1] orderGetIn true

Additional Information

See also: assignAsDriver, assignAsGunner, assignAsCargo, moveInCommander
Multiplayer: 
Problems: 

Notes