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.7 (vehicle driver initFov).

Parameters

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

Examples

_fovarray = call CBA_fnc_getFov

_fovarray = 0.75 call CBA_fnc_getFov

Returns

Array [fov,zoom]

Authors

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

Close