cameraView: Difference between revisions

From Bohemia Interactive Community
m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*) *<\/code>" to "<code>$1$2$3</code>")
m (Some wiki formatting)
Tag: Manual revert
 
(5 intermediate revisions by the same user not shown)
Line 21: Line 21:
* "GROUP" (commander view)
* "GROUP" (commander view)


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


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


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


|seealso= [[switchCamera]] [[cameraOn]] [[cameraEffect]]
|seealso= [[switchCamera]] [[cameraOn]] [[cameraEffect]]
}}
}}

Latest revision as of 21: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