currentVisionMode: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]2(\|.*)\]\]" to "{{GameCategory|arma2|Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma2oa |Game name= | | arma2oa |Game name= | ||
Line 9: | Line 8: | ||
|gr1= Weapons |GROUP1= | |gr1= Weapons |GROUP1= | ||
| Returns current vision mode of unit's weapon. | | Returns current vision mode of unit's weapon. | ||
Line 16: | Line 14: | ||
* 1 - night vision | * 1 - night vision | ||
* 2 - thermal vision |DESCRIPTION= | * 2 - thermal vision |DESCRIPTION= | ||
| '''currentVisionMode''' unit |SYNTAX= | | '''currentVisionMode''' unit |SYNTAX= | ||
Line 23: | Line 20: | ||
| [[Number]] |RETURNVALUE= | | [[Number]] |RETURNVALUE= | ||
|x1= <code>_currMode <nowiki>=</nowiki> '''currentVisionMode''' gunner _tank</code> |EXAMPLE1= | |x1= <code>_currMode <nowiki>=</nowiki> '''currentVisionMode''' gunner _tank</code> |EXAMPLE1= | ||
Line 31: | Line 27: | ||
}; | }; | ||
</code> |EXAMPLE2= | </code> |EXAMPLE2= | ||
| [[disableNVGEquipment]], [[disableTIEquipment]], [[camUseNVG]], [[setCamUseTI]], [[currentMagazine]], [[currentWeapon]], [[currentMuzzle]], [[currentWeaponMode]], [[currentZeroing]], [[magazinesTurret]], [[weaponsTurret]] |SEEALSO= | | [[disableNVGEquipment]], [[disableTIEquipment]], [[camUseNVG]], [[setCamUseTI]], [[currentMagazine]], [[currentWeapon]], [[currentMuzzle]], [[currentWeaponMode]], [[currentZeroing]], [[magazinesTurret]], [[weaponsTurret]] |SEEALSO= |
Revision as of 00:46, 17 January 2021
Description
- Description:
- Returns current vision mode of unit's weapon.
- 0 - daytime
- 1 - night vision
- 2 - thermal vision
- Groups:
- Weapons
Syntax
Examples
- Example 1:
_currMode = currentVisionMode gunner _tank
- Example 2:
if (currentVisionMode player == 1) then { hint "nightvision active"; };
Additional Information
- See also:
- disableNVGEquipmentdisableTIEquipmentcamUseNVGsetCamUseTIcurrentMagazinecurrentWeaponcurrentMuzzlecurrentWeaponModecurrentZeroingmagazinesTurretweaponsTurret
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
- Posted on April 29, 2016 - 21:31 (UTC)
- AgentRev
- The return value is somewhat erratic for UAVs. For example, if you are connected to a UAV, with the turret set to thermal vision and PIP feed enabled, "currentVisionMode gunner _uav" returns 2 when controlling the turret, but returns 0 after releasing control, even thought the PIP feed is still in thermal mode. WIth nightvision, it will return 1 whether or not you are controlling the turret, but if you switch from 1st to 3rd person before releasing control, then it returns 0 afterwards...
Categories:
- Scripting Commands
- Introduced with Arma 2: Operation Arrowhead version 1.51
- Arma 2: Operation Arrowhead: New Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Command Group: Weapons
- Arma 2: Operation Arrowhead: New Scripting Commands List
- Arma 2: Scripting Commands
- Arma 3: Scripting Commands
- Take On Helicopters: Scripting Commands