CBA_fnc_getFov

Description

Get current camera’s vertical field of view in radians and zoom.

Zoom is relative to specified config FOV, defaults to 0.75 (vehicle driver initFov).

Parameters

(optional) base config fov value corresponding to 1x zoom, defaults to 0.75.

Examples

private _fieldOfView = [] call CBA_fnc_getFov select 0;
private _zoom = 0.75 call CBA_fnc_getFov select 1;

Returns

Array [fov,zoom]

Authors

q1184 (original code and calculation method) ceeeb (improved code and new zoom calculation method) streamlined by commy2

Close