cameraView: 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= | ||
| 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 00:29, 17 January 2021
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