cameraView: Difference between revisions

From Bohemia Interactive Community
m (Some wiki formatting)
Tags: Manual revert Reverted
m (Some wiki formatting)
Tag: Manual revert
 
Line 21: Line 21:
* "GROUP" (commander view)
* "GROUP" (commander view)


|s1= '''cameraView'''
|s1= [[cameraView]]


|r1= [[String]]
|r1= [[String]]


|x1= <sqf>
|x1= <sqf>
if (cameraOn == _vehicle && cameraView == "External") then
if (cameraOn == _vehicle && cameraView == "EXTERNAL") then
{
{
  _vehicle switchCamera "Internal";
_vehicle switchCamera "INTERNAL";
};
};
</sqf>
</sqf>

Latest revision as of 20:06, 3 March 2026

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:
switchCamera cameraOn cameraEffect

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note