getTurretOpticsMode: Difference between revisions
Hypoxic125 (talk | contribs) m (Added additional description about zoom levels) |
BrettMayson (talk | contribs) mNo edit summary |
||
| Line 21: | Line 21: | ||
|p21= obj: [[Object]] | |p21= obj: [[Object]] | ||
|p22= turretPath: | |p22= turretPath: [[Turret Path]] | ||
|r2= [[Number]] | |r2= [[Number]] | ||
Latest revision as of 08:48, 2 January 2026
Description
- Description:
- Get the current optics mode of the optics in the turret occupied by the specified unit. The alternative syntax allows a vehicle and turret path to be specified without needing a unit. Optic modes refer to the different fields of view (FOV) or zoom levels of an optic.
- Groups:
- Turrets
Syntax
- Syntax:
- getTurretOpticsMode obj
- Parameters:
- obj: Object
- Return Value:
- Number
Alternative Syntax
- Syntax:
- obj getTurretOpticsMode turretPath
- Parameters:
- obj: Object
- turretPath: Turret Path
- Return Value:
- Number
Examples
- Example 1:
- getTurretOpticsMode player;
- Example 2:
- myTank getTurretOpticsMode [-1];
- Example 3:
- myAircraft getTurretOpticsMode [0, 0];
Additional Information
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note