Arma 3 Scripting

Command in Turrets

setTurretOpticsMode

Also available as Markdown and JSON, or read the original wiki page.

Description

Set the current optics mode of the optics in the turret occupied by the specified unit. Alternatively, you can specify a vehicle and turret path instead of a unit. Optic modes refer to the different fields of view (FOV) or zoom levels of an optic.

Syntax

Syntax 1

obj setTurretOpticsMode mode

Parameters:

Returns: Nothing

Syntax 2

obj setTurretOpticsMode [turretPath, opticModeIndex]

Parameters:

Returns: Nothing

Examples

Example 1

player setTurretOpticsMode 0;

Example 2

myTank setTurretOpticsMode [[-1], 1];

Example 3

myAircraft setTurretOpticsMode [[0, 0], 0];

See also

getTurretOpticsMode · turretLocal · selectWeaponTurret · getPilotCameraOpticsMode · setPilotCameraOpticsMode