getTurretOpticsMode: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Page creation)
 
m (Added additional description about zoom levels)
 
(5 intermediate revisions by 3 users not shown)
Line 6: Line 6:
|arg= local
|arg= local


|branch= dev


|descr= Get the current optics mode of the optics in the turret occupied by the specified unit. Alt syntax allows a vehicle and turret path to be specified instead of a unit.  
|descr= 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.


|gr1= Turrets
|gr1= Turrets
Line 15: Line 14:


|p1= obj: [[Object]]
|p1= obj: [[Object]]
|r1= [[Number]]


|s2= obj [[getTurretOpticsMode]] turretPath
|s2= obj [[getTurretOpticsMode]] turretPath
|r1= [[Number]]


|p21= obj: [[Object]]
|p21= obj: [[Object]]


|p22= turretPath: [[Array]] format turret path
|p22= turretPath: [[Array]] format [[Turret Path]]


|r2= [[Number]]
|r2= [[Number]]
Line 28: Line 27:
|x1= <sqf>getTurretOpticsMode player;</sqf>
|x1= <sqf>getTurretOpticsMode player;</sqf>


|x2= <sqf>myTank getTurretOpticeMode [-1];</sqf>
|x2= <sqf>myTank getTurretOpticsMode [-1];</sqf>


|x3= <sqf>myAircraft getTurretOpticsMode [0, 0];</sqf>
|x3= <sqf>myAircraft getTurretOpticsMode [0, 0];</sqf>


|seealso= [[setTurretOpticsMode]] [[turretOwner]]
|seealso= [[setTurretOpticsMode]] [[turretOwner]] [[getPilotCameraOpticsMode]] [[setPilotCameraOpticsMode]]
}}
}}

Latest revision as of 04:35, 30 May 2024

Hover & click on the images for description

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: Array format Turret Path
Return Value:
Number

Examples

Example 1:
getTurretOpticsMode player;
Example 2:
myTank getTurretOpticsMode [-1];
Example 3:
myAircraft getTurretOpticsMode [0, 0];

Additional Information

See also:
setTurretOpticsMode turretOwner 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