getTurretOpticsMode: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Fix example)
m (Some wiki formatting)
Line 8: Line 8:
|branch= dev
|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.  


|gr1= Turrets
|gr1= Turrets
Line 22: Line 22:
|p21= obj: [[Object]]
|p21= obj: [[Object]]


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


|r2= [[Number]]
|r2= [[Number]]

Revision as of 10:46, 8 August 2022

Hover & click on the images for description
Only available in Development branch(es) until its release with Arma 3 patch v2.10.

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

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