Arma 3 Scripting

getOpticsMode

  • Arma 3 v2.10

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