Difference between revisions of "setOpticsMode"
Jump to navigation
Jump to search
m |
(remove duplicate text; shorten parameter name) |
||
Line 8: | Line 8: | ||
|gr1= Object Manipulation | |gr1= Object Manipulation | ||
− | |descr= Sets the optic mode of the current weapon to the given class name or the index | + | |descr= Sets the optic mode of the current weapon to the given class name or the index. |
− | |s1= unit [[setOpticsMode]] | + | |s1= unit [[setOpticsMode]] mode |
|p1= unit: [[Object]] | |p1= unit: [[Object]] | ||
− | |p2= | + | |p2= mode: [[String]] or [[Number]] - Class name defined in the OpticsModes config class of the optic. Or the 0-based index of the optic mode with 0 being the default optic mode. |
|r1= [[Nothing]] | |r1= [[Nothing]] |
Revision as of 12:06, 24 March 2022
Description
- Description:
- Sets the optic mode of the current weapon to the given class name or the index.
- Groups:
- Object Manipulation
Syntax
- Syntax:
- unit setOpticsMode mode
- Parameters:
- unit: Object
- mode: String or Number - Class name defined in the OpticsModes config class of the optic. Or the 0-based index of the optic mode with 0 being the default optic mode.
- Return Value:
- Nothing
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