Arma 3 Scripting

Command in Object Manipulation

setOpticsMode

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

Description

Sets the optic mode of the current weapon to the given class name or the index.

Syntax

unit setOpticsMode mode

Parameters:

Returns: Nothing

Examples

Example 1

player setOpticsMode "Hamr2Scope"; // Default optic mode for optic_Hamr

Example 2

player setOpticsMode 0;

Example 3

player setOpticsMode [1, 0]; // reset the optics mode of the player's primary weapon to the default

See also

getOpticsMode