cameraView: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "(\| * )+\}\}" to "}}")
m (Text replacement - " {3,}\|" to " |")
Line 22: Line 22:


| [[String]]
| [[String]]


|x1= <code>[[if]] ([[cameraOn]] == _vehicle [[&&]] [[cameraView]] == "External") [[then]]
|x1= <code>[[if]] ([[cameraOn]] == _vehicle [[&&]] [[cameraView]] == "External") [[then]]
Line 28: Line 27:
   _vehicle [[switchCamera]] "Internal";
   _vehicle [[switchCamera]] "Internal";
};</code>
};</code>


| [[switchCamera]], [[cameraOn]], [[cameraEffect]]
| [[switchCamera]], [[cameraOn]], [[cameraEffect]]

Revision as of 17:05, 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