setTurretOpticsMode: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Page creation) |
Lou Montana (talk | contribs) m (Add seeAlso) |
||
Line 28: | Line 28: | ||
|x3= <sqf>myAircraft setTurretOpticsMode [[0, 0], 0];</sqf> | |x3= <sqf>myAircraft setTurretOpticsMode [[0, 0], 0];</sqf> | ||
|seealso= [[turretLocal]] [[selectWeaponTurret]] | |seealso= [[getTurretOpticsMode]] [[turretLocal]] [[selectWeaponTurret]] | ||
}} | }} |
Revision as of 17:55, 23 May 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 or Array - optic mode index or [turretPath, opticModeIndex]
- Return Value:
- Nothing
Examples
- Example 1:
- Example 2:
- myTank setTurretOpticeMode [[-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