getOpticsMode
Jump to navigation
Jump to search
Description
- Description:
- Returns the class name of the current optic mode of the current weapon.
- Groups:
- Object Manipulation
Syntax
- Syntax:
- unit getOpticsMode slot
- Parameters:
- unit: Object
- slot: Number - can be one of:
- 0 - Current weapon
- 1 - Primary weapon
- 2 - Secondary weapon
- 3 - Handgun
- Return Value:
- String - Class name of the current optic mode of the current weapon
Examples
- Example 1:
Additional Information
- See also:
- setOpticsMode
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