Page tree
Skip to end of metadata
Go to start of metadata

Introduced in

Version:3.7.1

Description

Description:

Returns the main-scene camera parameters of main scene camera.

The returned array consists of:

  • Direction vector.
  • Up vector.
  • Position ASL2.
  • Velocity.
  • Base field of view in angular degrees, ignoring the aspect ratio.

Syntax

Syntax:cameraView
Parameters:
Return Value:Array- [Array direction vector, Array up vector, Array position ASL2, Array velocity, Number field of view]

Examples

Examples:

_cameraDir = cameraData select 0; _cameraIsLookingUp = _cameraDir select 2 > 0.5; // > sin 30

_cameraVel = cameraData select 3; _cameraIsMoving = _cameraVel call fn_vbs_magnitude > 0.1;

_cameraFov = cameraData select 4; _cameraIsZoomed = _cameraFov < 40;

Additional Information

See also: cameraView, cameraOn, cameraEffect
Multiplayer: 
Problems: 

Notes