moveInTurret

From Bohemia Interactive Community
Revision as of 09:56, 29 July 2006 by Raedor (talk | contribs)
Jump to navigation Jump to search


soldier moveInTurret [vehicle, turret path]


Operand types:

soldier: Object

[vehicle, turret path]: Array

Type of returned value:

Nothing

Compatibility:

Version 2.92 required.

Description:

Moves the soldier into the vehicle's turret. (Immediately, without animation).

Example:

soldierOne moveInTurret [tank, [0, 0]]

turretPath [0,0] moves the soldier in the first turret of the first turret of a vehicle, [0, 2, 1] would move him to the second turret of the third turret of the first turret, [1] moves him to the second turret of a vehicle. Turret order has to be defined in the class CfgVehicles of the Config.