Arma 3 Scripting

getTurretOpticsMode

  • Local argument
  • Arma 3 v2.10

Command · Markdown · JSON · original wiki page

Description

Get the current optics mode of the optics in the turret occupied by the specified unit. The alternative syntax allows a vehicle and turret path to be specified without needing a unit. Optic modes refer to the different fields of view (FOV) or zoom levels of an optic.

Syntax

Syntax 1

getTurretOpticsMode obj

Parameters:

Returns: Number

Syntax 2

obj getTurretOpticsMode turretPath

Parameters:

Returns: Number

Examples

Example 1

getTurretOpticsMode player;

Example 2

myTank getTurretOpticsMode [-1];

Example 3

myAircraft getTurretOpticsMode [0, 0];

See also

setTurretOpticsMode · turretOwner · getPilotCameraOpticsMode · setPilotCameraOpticsMode