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



Introduced in

Version:3.7

Description

Description: Returns the current lead angle of the given turret.

Syntax

Syntax: turretLead gunner
Parameters:
  • gunner: Object - Gunner in a turret.
Return Value: Array - [azimuth, elevation] (in degrees). If wrong parameters are supplied, [0,0] is returned.

Alternative Syntax

Syntax:turretLead [vehicle, turret]
Parameters:
  • vehicle: Object - Vehicle with a turret.
  • turret: Array - Turret path to examine.
Return Value:Array - [azimuth, elevation] (in degrees). If wrong parameters are supplied, [0,0] is returned.

Examples

Examples:
_leadOffset = turretLead player
_leadOffset = turretLead [tank1,[0]]

Additional Information

See also: setTurretStabilization, turretWeaponDirection, opticsOffset, turretOpticsDirection
Multiplayer: 
Problems: 

Notes