{"name":"BIS_fnc_camFollow","title":"BIS fnc camFollow","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_camFollow","revid":326944,"updated":"2022-07-12T21:44:40Z","groups":["Camera"],"status":"ok","games":{"tkoh":"1.00","arma3":"0.50"},"since":"tkoh 1.00","arma3_since":"0.50","description":"Refresh a camera Field of View according to its distance with the target.","syntaxes":[{"syntax":"[camera, target, refreshTime] call BIS_fnc_camFollow","params":[{"name":"camera","type":"Object","type_expr":"Object"},{"name":"target","type":"Object or Position","type_expr":"Object | Position"},{"name":"refreshTime","type":"Number","optional":true,"default":"1","description":"transition time in seconds.\nIf *refreshTime* is **positive**, a refresh happens only once.\nif *refreshTime* is **negative**, the refresh will loop (with a transition time of absolute *refreshTime*) until camera is null","type_expr":"Number","text":"refreshTime: Number - (Optional, default 1) transition time in seconds.\nIf *refreshTime* is **positive**, a refresh happens only once.\nif *refreshTime* is **negative**, the refresh will loop (with a transition time of absolute *refreshTime*) until camera is null"}],"returns":{"type":"Nothing","type_expr":"Nothing"}}],"examples":[{"code":["private _camera = \"camera\" camCreate ((getPos player) vectorAdd [0,0,3]);\n[_camera, player, -2] call BIS_fnc_camFollow;"]}]}