cameraView: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(add. classification)
(define return values, links)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


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


Line 21: Line 25:




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


____________________________________________________________________________________________
____________________________________________________________________________________________


| |= SEEALSO  
| [[switchCamera]], [[cameraOn]] |= SEEALSO  


|  |= MPBEHAVIOUR  
|  |= MPBEHAVIOUR  

Revision as of 12:06, 19 June 2009

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:
Uncategorised

Syntax

Syntax:
cameraView
Return Value:
String

Examples

Example 1:
if (cameraOn == _vehicle && cameraView == "External") then { _vehicle switchCamera "Internal"; };

Additional Information

See also:
switchCameracameraOn

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

Notes

Bottom Section