Arma 3 Scripting

Command in Object Manipulation

getOpticsMode

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

Description

Returns the class name of the current optic mode of the current weapon.

Syntax

unit getOpticsMode slot

Parameters:

Returns: String - class name of the current optic mode of the current weapon

Examples

Example 1

player getOpticsMode 0; // get current weapon's optic mode
player getOpticsMode 1; // get primary weapon's optic mode
player getOpticsMode 2; // get launcher's optic mode
player getOpticsMode 3; // get handgun's optic mode

See also

setOpticsMode