Description
Returns the class name of the current optic mode of the current weapon.
Syntax
unit getOpticsMode slot
Parameters:
unit: Objectslot: Number - can be one of:- 0 - Current weapon
- 1 - Primary weapon
- 2 - Secondary weapon
- 3 - Handgun
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