setTurretOpticsMode: 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 37: Line 37:
|x3= <sqf>myAircraft setTurretOpticsMode [[0, 0], 0];</sqf>
|x3= <sqf>myAircraft setTurretOpticsMode [[0, 0], 0];</sqf>


|seealso= [[getTurretOpticsMode]] [[turretLocal]] [[selectWeaponTurret]]
|seealso= [[getTurretOpticsMode]] [[turretLocal]] [[selectWeaponTurret]] [[getPilotCameraOpticsMode]] [[setPilotCameraOpticsMode]]
}}
}}

Latest revision as of 16:50, 5 April 2023

Hover & click on the images for description

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:
player setTurretOpticsMode 0;
Example 2:
myTank setTurretOpticsMode [[-1], 1];
Example 3:
myAircraft setTurretOpticsMode [[0, 0], 0];

Additional Information

See also:
getTurretOpticsMode turretLocal selectWeaponTurret 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