BIS fnc camFollow: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl>" to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| tkoh | | tkoh | ||
|1.00 | |1.00 | ||
|gr1= Camera | |gr1= Camera | ||
| Refresh a camera Field of View according to its distance with the target. | | Refresh a camera Field of View according to its distance with the target. | ||
| [camera, target, refreshTime] call [[BIS_fnc_camFollow]] | | [camera, target, refreshTime] call [[BIS_fnc_camFollow]] | ||
|p1= camera: [[Object]] | |p1= camera: [[Object]] | ||
|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]] | ||
| [[Nothing]] | | [[Nothing]] | ||
|x1= <code>_camera = "camera" [[camCreate]] (([[getPos]] [[player]]) [[vectorAdd]] [0,0,3]); | |x1= <code>_camera = "camera" [[camCreate]] (([[getPos]] [[player]]) [[vectorAdd]] [0,0,3]); | ||
[_camera, [[player]], -2] [[call]] [[BIS_fnc_camFollow]];</code> | [_camera, [[player]], -2] [[call]] [[BIS_fnc_camFollow]];</code> | ||
| [[:Category:Command Group: Camera Control|Camera commands]] | | | [[:Category:Command Group: Camera Control|Camera commands]] | | ||
}} | }} | ||
Revision as of 22:40, 17 January 2021
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:
- 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