getTurretOpticsMode: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|branch= *dev " to "")
(Add references to new Pilot Camera versions)
Line 31: Line 31:
|x3= <sqf>myAircraft getTurretOpticsMode [0, 0];</sqf>
|x3= <sqf>myAircraft getTurretOpticsMode [0, 0];</sqf>


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

Revision as of 16:50, 5 April 2023

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.
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