Arma 3 Scripting

setOpticsMode

  • Arma 3 v2.10

Command · Markdown · JSON · 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