Description
Sets the optic mode of the current weapon to the given class name or the index.
Syntax
unit setOpticsMode mode
Parameters:
unit: Objectmode: String, Number or Array:
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