getTurretOpticsMode: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Page creation) |
Lou Montana (talk | contribs) m (Fix example) |
||
Line 28: | Line 28: | ||
|x1= <sqf>getTurretOpticsMode player;</sqf> | |x1= <sqf>getTurretOpticsMode player;</sqf> | ||
|x2= <sqf>myTank | |x2= <sqf>myTank getTurretOpticsMode [-1];</sqf> | ||
|x3= <sqf>myAircraft getTurretOpticsMode [0, 0];</sqf> | |x3= <sqf>myAircraft getTurretOpticsMode [0, 0];</sqf> |
Revision as of 00:51, 25 June 2022
Description
- Description:
- 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.
- 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