setTurretOpticsMode: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Page creation) |
Hypoxic125 (talk | contribs) m (Added additional description about zoom levels) |
||
(6 intermediate revisions by 3 users not shown) | |||
Line 8: | Line 8: | ||
|eff= local | |eff= local | ||
|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 18: | Line 17: | ||
|p1= obj: [[Object]] | |p1= obj: [[Object]] | ||
|p2= mode: [[Number | |p2= mode: [[Number]] - optic mode index | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|s2= obj [[setTurretOpticsMode]] [turretPath, opticModeIndex] | |||
|p21= obj: [[Object]] | |||
|p22= turretPath: [[Array]] format [[Turret Path]] | |||
|p23= opticModeIndex: [[Number]] - optic mode index | |||
|r2= [[Nothing]] | |||
|x1= <sqf>player setTurretOpticsMode 0;</sqf> | |x1= <sqf>player setTurretOpticsMode 0;</sqf> | ||
|x2= <sqf>myTank | |x2= <sqf>myTank setTurretOpticsMode [[-1], 1];</sqf> | ||
|x3= <sqf>myAircraft setTurretOpticsMode [[0, 0], 0];</sqf> | |x3= <sqf>myAircraft setTurretOpticsMode [[0, 0], 0];</sqf> | ||
|seealso= [[turretLocal]] [[selectWeaponTurret]] | |seealso= [[getTurretOpticsMode]] [[turretLocal]] [[selectWeaponTurret]] [[getPilotCameraOpticsMode]] [[setPilotCameraOpticsMode]] | ||
}} | }} |
Latest revision as of 04:34, 30 May 2024
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: Array format 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 or on the Forums.
Only post proven facts here! Add Note