BIS_fnc_camFollow
- Arma 3 v0.50
- First in Take On Helicopters v1.00
Function · Markdown · JSON · original wiki page
Description
Refresh a camera Field of View according to its distance with the target.
Syntax
[camera, target, refreshTime] call BIS_fnc_camFollow
Parameters:
camera: Objecttarget: Object or PositionrefreshTime: Number - (Optional, default 1) transition time in seconds. If refreshTime is positive, a refresh happens only once. if refreshTime is negative, the refresh will loop (with a transition time of absolute refreshTime) until camera is null
Returns: Nothing
Examples
Example 1
private _camera = "camera" camCreate ((getPos player) vectorAdd [0,0,3]);
[_camera, player, -2] call BIS_fnc_camFollow;