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



Introduced in

Version:1.68

Description

Description: Returns the current direction of a turret.

Returned angle is slightly more accurate (in the tenth of a degree range) than the values returned by turretWeaponDirection or weaponDirection.

(Not available in V2.0+!)

Syntax

Syntax: vehicle turretAzimuth turret
Parameters:
  • vehicle: Object - Vehicle equipped with turrets
  • turret: Array - Path of turret to check
Return Value: Number - Direction of turret (in degrees). If turret doesn't exist, 0 is returned.

Examples

Examples:
_dir = tank1 turretAzimuth [0]

Additional Information

See also: weaponDirection, turretWeaponDirection, listAllTurrets
Multiplayer: 
Problems: 

Notes