currentVisionMode: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (description)
m (Added SEEALSO)
Line 31: Line 31:
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[currentMagazine]], [[currentMuzzle]], [[currentWeapon]], [[currentWeaponMode]], [[currentZeroing]] |= See also
| [[currentMagazine]], [[currentWeapon]], [[currentMuzzle]], [[currentWeaponMode]], [[currentZeroing]], [[magazinesTurret]], [[weaponsTurret]] |= See also
 
 
}}
}}



Revision as of 17:38, 4 October 2010

Hover & click on the images for description

Description

Description:
Returns current vision mode of unit's weapon.
  • 0 - daytime
  • 1 - night vision
  • 2 - FLIR
Groups:
Uncategorised

Syntax

Syntax:
currentVisionMode unit
Parameters:
unit: Object
Return Value:
Number

Examples

Example 1:
_currMode = currentVisionMode gunner _tank
Example 2:
if (currentVisionMode player == 1) then { hint "nightvision active"; };

Additional Information

See also:
currentMagazinecurrentWeaponcurrentMuzzlecurrentWeaponModecurrentZeroingmagazinesTurretweaponsTurret

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

Notes

Bottom Section