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



Introduced in

Version:1.22

Description

Description:Returns the offset between weapon orientation and optics.

Syntax

Syntax:vehicle opticsOffset gunner
Parameters:
  • vehicle: Object - Vehicle to check.
  • gunner: Object - Gunner to check.
Return Value:Array - Offset as [azimuth, elevation].

Alternative Syntax

Syntax:vehicle opticsOffset turret
Parameters:
  • vehicle: Object - Vehicle to check.
  • turret: Array - Turret path.
Return Value:Array - Offset as [azimuth, elevation].

Examples

Examples:
_offset = tank1 opticsOffset (gunner tank1)
_offset = tank1 opticsOffset [[0]]

Additional Information

See also: opticsState, setOpticsOffset, turretLead
Multiplayer: 
Problems: 

Notes