Arma 3 Scripting

Command in Turrets

getTurretOpticsMode

Also available as Markdown and JSON, or read the 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