cameraView: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]2(\|.*)]]" to "{{GameCategory|arma2|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma2 |Game name=
| arma2 |Game name=
Line 7: Line 6:


|gr1= Camera Control |GROUP1=
|gr1= Camera Control |GROUP1=
____________________________________________________________________________________________


| Returns mode of active camera view. Mode is one of:  
| Returns mode of active camera view. Mode is one of:  
Line 14: Line 12:
* "GUNNER" (optics / sights)
* "GUNNER" (optics / sights)
* "GROUP" (commander view) |DESCRIPTION=
* "GROUP" (commander view) |DESCRIPTION=
____________________________________________________________________________________________


| '''cameraView''' |SYNTAX=
| '''cameraView''' |SYNTAX=
Line 32: Line 29:
};</code>|EXAMPLE1=  
};</code>|EXAMPLE1=  


____________________________________________________________________________________________


| [[switchCamera]], [[cameraOn]], [[cameraEffect]] |SEEALSO=  
| [[switchCamera]], [[cameraOn]], [[cameraEffect]] |SEEALSO=  


|  |MPBEHAVIOUR=  
|  |MPBEHAVIOUR=  
____________________________________________________________________________________________
}}
}}



Revision as of 01:29, 17 January 2021

Hover & click on the images for description

Description

Description:
Returns mode of active camera view. Mode is one of:
  • "INTERNAL" (1st person)
  • "EXTERNAL" (3rd person)
  • "GUNNER" (optics / sights)
  • "GROUP" (commander view)
Groups:
Camera Control

Syntax

Syntax:
cameraView
Return Value:
String

Examples

Example 1:
if (cameraOn == _vehicle && cameraView == "External") then { _vehicle switchCamera "Internal"; };

Additional Information

See also:
switchCameracameraOncameraEffect

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