BIS fnc camFollow: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *(arg|eff|mp|serverExec|gr[0-9]) *= *(.*) * *\|([^=]{12})" to "|$1=$2 |descr=$3") |
Lou Montana (talk | contribs) m (Text replacement - "<code> *([^<|{]*) *<\/code>" to "<sqf>$1</sqf>") |
||
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=function | {{RV|type=function | ||
| tkoh | |game1= tkoh | ||
|1.00 | |version1= 1.00 | ||
|game2= arma3 | |game2= arma3 | ||
Line 11: | Line 11: | ||
|descr= 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]] | ||
|p1= camera: [[Object]] | |p1= camera: [[Object]] | ||
Line 17: | Line 17: | ||
|p2= target: [[Object]] or [[Position]] | |p2= target: [[Object]] or [[Position]] | ||
|p3= 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 [[abs|absolute]] ''refreshTime'') until camera [[isNull|is null]] | |p3= 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 [[abs|absolute]] ''refreshTime'') until camera [[isNull|is null]] | |||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|x1= < | |x1= <sqf>private _camera = "camera" camCreate ((getPos player) vectorAdd [0,0,3]); | ||
[_camera, | [_camera, player, -2] call BIS_fnc_camFollow;</sqf> | ||
| [[:Category:Command Group: Camera Control|Camera commands | |seealso= [[:Category:Command Group: Camera Control|Camera commands]] | ||
}} | |||
Latest revision as of 22:44, 12 July 2022
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:
Additional Information
- See also:
- Camera commands
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