BIS fnc camFollow: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \| *tkoh * *\| *1.([0-9]{2}) * +\|([^g]|g[^a])" to " | tkoh |1.$1 |game2= arma3 |version2= 0.50 |$2")
m (Text replacement - "\| *(arg|eff|mp|serverExec|gr[0-9]) *= *(.*) * *\|([^=]{12})" to "|$1=$2 |descr=$3")
Line 9: Line 9:
|gr1= Camera
|gr1= Camera


| Refresh a camera Field of View according to its distance with the target.
|descr= Refresh a camera Field of View according to its distance with the target.


|s1=[camera, target, refreshTime] call [[BIS_fnc_camFollow]]
|s1=[camera, target, refreshTime] call [[BIS_fnc_camFollow]]

Revision as of 21:38, 13 June 2021

Hover & click on the images for description

Description

Description:
Refresh a camera Field of View according to its distance with the target.
Execution:
call
Groups:
Camera

Syntax

Syntax:
[camera, target, refreshTime] call BIS_fnc_camFollow
Parameters:
camera: Object
target: Object or Position
refreshTime: 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
Return Value:
Nothing

Examples

Example 1:
_camera = "camera" camCreate ((getPos player) vectorAdd [0,0,3]); [_camera, player, -2] call BIS_fnc_camFollow;

Additional Information

See also:
See also needed

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note