setTurretOpticsMode: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Fix example) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 26: | Line 26: | ||
|p21= obj: [[Object]] | |p21= obj: [[Object]] | ||
|p22= turretPath: [[Array]] | |p22= turretPath: [[Array]] format [[Turret Path]] | ||
|p23= opticModeIndex: [[Number]] - optic mode index | |p23= opticModeIndex: [[Number]] - optic mode index |
Revision as of 11:10, 8 August 2022
Description
- Description:
- Set 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:
- 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
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