getOpticsMode: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Some wiki formatting) |
Lou Montana (talk | contribs) m (Text replacement - "(\|[pr][0-9]+ *= *[^-]+) *- *C([a-eg-z])" to "$1 - c$2") |
||
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
|game1= arma3 | |game1= arma3 | ||
|version1= 2.10 | |version1= 2.10 | ||
Line 19: | Line 18: | ||
* 3 - [[handgunWeapon|Handgun]] | * 3 - [[handgunWeapon|Handgun]] | ||
|r1= [[String]] - | |r1= [[String]] - class name of the current optic mode of the current weapon | ||
|x1= <sqf> | |x1= <sqf> |
Latest revision as of 14:00, 8 November 2023
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