cameraView: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(populated with empty template)
m (Text replacement - "<sqf>([^↵][^\/]*↵[^\/]*)<\/sqf>" to "<sqf> $1 </sqf>")
 
(53 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma2 |= Game name
|game1= arma2
|version1= 1.00


|1.00|= Game version
|game2= arma2oa
____________________________________________________________________________________________
|version2= 1.50


| (description) |= Description
|game3= tkoh
____________________________________________________________________________________________
|version3= 1.00


| '''(command)''' |= Syntax
|game4= arma3
|version4= 0.50


|p1= |= PARAMETER1
|gr1= Camera Control


|p2= |= PARAMETER2
|descr= Returns mode of active camera view. Mode is one of:
* "INTERNAL" (1st person)
* "EXTERNAL" (3rd person)
* "GUNNER" (optics / sights)
* "GROUP" (commander view)


|p3= |= PARAMETER3
|s1= '''cameraView'''


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


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


|x1= <code>(example)</code>|= EXAMPLE1
|seealso= [[switchCamera]] [[cameraOn]] [[cameraEffect]]
 
____________________________________________________________________________________________
 
|  |= SEEALSO
 
|  |= MPBEHAVIOUR
____________________________________________________________________________________________
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>
[[Category:ArmA 2: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]

Latest revision as of 11:28, 3 September 2024

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 or on the Forums.
Only post proven facts here! Add Note