cameraView: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
m (Text replacement - "<sqf>([^↵][^\/]*↵[^\/]*)<\/sqf>" to "<sqf> $1 </sqf>")
 
(30 intermediate revisions by 2 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


|gr1= Camera Control |GROUP1=
|game3= tkoh
|version3= 1.00


| Returns mode of active camera view. Mode is one of:  
|game4= arma3
|version4= 0.50
 
|gr1= Camera Control
 
|descr= Returns mode of active camera view. Mode is one of:  
* "INTERNAL" (1st person)
* "INTERNAL" (1st person)
* "EXTERNAL" (3rd person)
* "EXTERNAL" (3rd person)
* "GUNNER" (optics / sights)
* "GUNNER" (optics / sights)
* "GROUP" (commander view) |DESCRIPTION=
* "GROUP" (commander view)
 
| '''cameraView''' |SYNTAX=
 
|p1= |PARAMETER1=
 
|p2= |PARAMETER2=
 
|p3= |PARAMETER3=


| [[String]] |RETURNVALUE=  
|s1= '''cameraView'''


|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>|EXAMPLE1=
};
 
</sqf>


| [[switchCamera]], [[cameraOn]], [[cameraEffect]] |SEEALSO=
|seealso= [[switchCamera]] [[cameraOn]] [[cameraEffect]]
 
|  |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>
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}
[[Category:Scripting Commands|{{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