cameraView: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma2 |Game name=
| arma2


|1.00|Game version=
|1.00


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


| Returns mode of active camera view. Mode is one of:  
| Returns mode of active camera view. Mode is one of:  
Line 11: Line 11:
* "EXTERNAL" (3rd person)
* "EXTERNAL" (3rd person)
* "GUNNER" (optics / sights)
* "GUNNER" (optics / sights)
* "GROUP" (commander view) |DESCRIPTION=
* "GROUP" (commander view)


| '''cameraView''' |SYNTAX=
| '''cameraView'''


|p1= |PARAMETER1=  
|p1=


|p2= |PARAMETER2=  
|p2=


|p3= |PARAMETER3=  
|p3=


| [[String]] |RETURNVALUE=
| [[String]]




Line 27: Line 27:
{
{
   _vehicle [[switchCamera]] "Internal";
   _vehicle [[switchCamera]] "Internal";
};</code>|EXAMPLE1=
};</code>




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


|  |MPBEHAVIOUR=  
|  |MPBEHAVIOUR=  

Revision as of 01:10, 18 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