setOpticsMode
Jump to navigation
Jump to search
Description
- Description:
- Sets the optic mode of the current weapon to the given class name or the index. Class name should be defined in the OpticsModes config class of the optic, index is the 0-based order of the optic modes with 0 being the default optic mode.
- Groups:
- Object Manipulation
Syntax
- Syntax:
- unit getOpticsMode modeClassNameOrIndex
- Parameters:
- unit: Object
- Return Value:
- String or Number - Class name defined in the OpticsModes config class of the optic. Or the 0-based order of the optic modes with 0 being the default optic mode.
Examples
- Example 1:
- Example 2:
Additional Information
- See also:
- getOpticsMode
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note