moveInTurret: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 23: Line 23:


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


'''Example:'''
'''Example:'''


soldierOne '''moveInTurret''' [tank, [0, 0]]
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]].

Revision as of 10:56, 29 July 2006


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.