getOpticsMode

From Bohemia Interactive Community
Revision as of 15:00, 8 November 2023 by Lou Montana (talk | contribs) (Text replacement - "(\|[pr][0-9]+ *= *[^-]+) *- *C([a-eg-z])" to "$1 - c$2")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Hover & click on the images for description

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:
Return Value:
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

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