cameraView: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "Category:Scripting Commands ArmA2" to "Category:Scripting Commands Arma 2")
m (Text replacement - "<sqf>([^↵][^\/]*↵[^\/]*)<\/sqf>" to "<sqf> $1 </sqf>")
 
(36 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


| Returns mode of active camera view. Mode is one of:  
|game3= tkoh
|version3= 1.00
 
|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=
|s1= '''cameraView'''


|p1= |PARAMETER1=  
|r1= [[String]]


|p2= |PARAMETER2=
|x1= <sqf>
 
if (cameraOn == _vehicle && cameraView == "External") then
|p3= |PARAMETER3=
 
| [[String]] |RETURNVALUE=
 
 
|x1= <code>[[if]] ([[cameraOn]] == _vehicle [[&&]] [[cameraView]] == "External") [[then]]
{
{
   _vehicle [[switchCamera]] "Internal";
   _vehicle switchCamera "Internal";
};</code>|EXAMPLE1=
};
</sqf>


____________________________________________________________________________________________
|seealso= [[switchCamera]] [[cameraOn]] [[cameraEffect]]
 
| [[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:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[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