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


Introduced in

Version:1.00

Description

Description:

Assigns a turret role to the given unit, and places it in a vehicle (the effect is immediate, no animation is played).

Available turrets can be determined by the getCrewPos command, and is defined as an array, containing either one or two positions definitions. For example:

  • [0]: First turret (no sub-turrets exist).
  • [0,0]: First sub-turret of first main turret.
  • [1,0]: Second sub-turret of first main turret.

Note: If you want to place the unit that is already inside a vehicle in a different vehicle position, move the unit out of the vehicle first, and then assign the new position.

To get a unit out of a vehicle, run: unit action ['GetOut', vehicle]

Syntax

Syntax:unit moveInTurret [vehicle, turret]
Parameters:
  • unit: Object - Unit to move to a turret.
  • vehicle: Object - Vehicle to move to,
  • turret: Array - Turret to move to.
Return Value:Nothing

Examples

Examples:soldierOne moveInTurret [tank1, [0,0]]

Additional Information

See also:moveInCargo, moveInCommander, moveInDriver, moveInGunner, assignAsGunner, getCrewPos
Multiplayer: 
Problems: 

Notes