cameraView: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Added SEEALSO)
m (Text replacement - "<sqf>([^↵][^\/]*↵[^\/]*)<\/sqf>" to "<sqf> $1 </sqf>")
 
(49 intermediate revisions by 6 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
 
|p1= |= PARAMETER1
 
|p2= |= PARAMETER2
 
|p3= |= PARAMETER3


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


|r1= [[String]]


|x1= <code><nowiki>if (cameraOn == _vehicle && cameraView == "External") then
|x1= <sqf>
if (cameraOn == _vehicle && cameraView == "External") then
{
{
   _vehicle switchCamera "Internal";
   _vehicle switchCamera "Internal";
};</nowiki></code>|= EXAMPLE1
};
 
</sqf>
____________________________________________________________________________________________
 
| [[switchCamera]], [[cameraOn]], [[cameraView]], [[cameraEffect]] |= SEEALSO


| |= MPBEHAVIOUR
|seealso= [[switchCamera]] [[cameraOn]] [[cameraEffect]]
____________________________________________________________________________________________
}}
}}
<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}}}}]]
[[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