setTurretOpticsMode: Difference between revisions
(Add references to new Pilot Camera versions) |
BrettMayson (talk | contribs) mNo edit summary |
||
| (One intermediate revision by one other user not shown) | |||
| Line 9: | Line 9: | ||
|descr= Set the current optics mode of the optics in the turret occupied by the specified unit. | |descr= Set the current optics mode of the optics in the turret occupied by the specified unit. Alternatively, you can specify a vehicle and turret path instead of a unit. Optic modes refer to the different fields of view (FOV) or zoom levels of an optic. | ||
|gr1= Turrets | |gr1= Turrets | ||
| Line 25: | Line 25: | ||
|p21= obj: [[Object]] | |p21= obj: [[Object]] | ||
|p22= turretPath: | |p22= turretPath: [[Turret Path]] | ||
|p23= opticModeIndex: [[Number]] - optic mode index | |p23= opticModeIndex: [[Number]] - optic mode index | ||
Latest revision as of 07:49, 2 January 2026
Description
- Description:
- Set the current optics mode of the optics in the turret occupied by the specified unit. Alternatively, you can specify a vehicle and turret path instead of a unit. Optic modes refer to the different fields of view (FOV) or zoom levels of an optic.
- Groups:
- Turrets
Syntax
- Syntax:
- obj setTurretOpticsMode mode
- Parameters:
- obj: Object
- mode: Number - optic mode index
- Return Value:
- Nothing
Alternative Syntax
- Syntax:
- obj setTurretOpticsMode [turretPath, opticModeIndex]
- Parameters:
- obj: Object
- turretPath: Turret Path
- opticModeIndex: Number - optic mode index
- Return Value:
- Nothing
Examples
- Example 1:
- Example 2:
- myTank setTurretOpticsMode [[-1], 1];
- Example 3:
- myAircraft setTurretOpticsMode [[0, 0], 0];
Additional Information
- See also:
- getTurretOpticsMode turretLocal selectWeaponTurret getPilotCameraOpticsMode setPilotCameraOpticsMode
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note