BIS fnc mapAnimAdd: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "{{Function " to "{{RV|type=function ") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=function | {{RV|type=function | ||
| arma3 | |game1= arma3 | ||
|version1= 1.00 | |||
| | |gr1= Map and Markers | ||
| | |arg= local | ||
|eff= local | |||
|[duration, toZoom, toPosition, interpModeZoom, interpModePosition, fromZoom, fromPosition] call [[BIS_fnc_mapAnimAdd]] | |descr= Similar to [[mapAnimAdd]], yet it provides additional parameters to allow for a non-linear zoom and various position interpolation modes. | ||
|s1= [duration, toZoom, toPosition, interpModeZoom, interpModePosition, fromZoom, fromPosition] call [[BIS_fnc_mapAnimAdd]] | |||
|p1= duration: [[Number]] - (Optional, default 1.0) the animation duration in seconds | |p1= duration: [[Number]] - (Optional, default 1.0) the animation duration in seconds | ||
|p2= toZoom: [[Number]] - (Optional, default 0.05) the zoom at the end of the animation, ranging from 0.01 (max. zoom) to 1 (zoomed out) | |p2= toZoom: [[Number]] - (Optional, default 0.05) the zoom at the end of the animation, ranging from 0.01 (max. zoom) to 1 (zoomed out) | ||
|p3= toPosition: [[Position]] - (Optional, default [0, 0, 0]) the position vector | |p3= toPosition: [[Position]] - (Optional, default [0, 0, 0]) the position vector | ||
|p4= interpModeZoom: [[Number]] - (Optional, default 12) the interpolation mode for the zoom | |p4= interpModeZoom: [[Number]] - (Optional, default 12) the interpolation mode for the zoom | ||
|p5= interpModePosition: [[Number]] - (Optional, default 12) the interpolation mode for the position | |p5= interpModePosition: [[Number]] - (Optional, default 12) the interpolation mode for the position | ||
|p6= fromZoom: [[Number]] - (Optional, default current map zoom) the zoom at the begnning of the animation, ranging from 0.01 (max. zoom) to 1 (zoomed out) | |p6= fromZoom: [[Number]] - (Optional, default current map zoom) the zoom at the begnning of the animation, ranging from 0.01 (max. zoom) to 1 (zoomed out) | ||
|[[ | |p7= fromPosition: [[Array]] format [[Position]] - (Optional, default current map position) the position vector from which to start the animation | ||
| | |r1= [[Nothing]] | ||
| | |x1= <sqf> | ||
openMap true; // the function will not work if the map is not open | |||
[2.0, 0.05, getPosASL player] call BIS_fnc_mapAnimAdd; | |||
</sqf> | |||
|seealso= [[BIS_fnc_mapAnimClear]] [[BIS_fnc_mapAnimDone]] [[mapAnimAdd]] [[mapAnimClear]] [[mapAnimCommit]] [[mapAnimDone]] [[ctrlMapAnimAdd]] [[ctrlMapAnimClear]] [[ctrlMapAnimCommit]] [[ctrlMapAnimDone]] | |||
}} | }} | ||
Latest revision as of 11:31, 1 July 2022
Description
- Description:
- Similar to mapAnimAdd, yet it provides additional parameters to allow for a non-linear zoom and various position interpolation modes.
- Execution:
- call
- Groups:
- Map and Markers
Syntax
- Syntax:
- [duration, toZoom, toPosition, interpModeZoom, interpModePosition, fromZoom, fromPosition] call BIS_fnc_mapAnimAdd
- Parameters:
- duration: Number - (Optional, default 1.0) the animation duration in seconds
- toZoom: Number - (Optional, default 0.05) the zoom at the end of the animation, ranging from 0.01 (max. zoom) to 1 (zoomed out)
- toPosition: Position - (Optional, default [0, 0, 0]) the position vector
- interpModeZoom: Number - (Optional, default 12) the interpolation mode for the zoom
- interpModePosition: Number - (Optional, default 12) the interpolation mode for the position
- fromZoom: Number - (Optional, default current map zoom) the zoom at the begnning of the animation, ranging from 0.01 (max. zoom) to 1 (zoomed out)
- fromPosition: Array format Position - (Optional, default current map position) the position vector from which to start the animation
- Return Value:
- Nothing
Examples
- Example 1:
Additional Information
- See also:
- BIS_fnc_mapAnimClear BIS_fnc_mapAnimDone mapAnimAdd mapAnimClear mapAnimCommit mapAnimDone ctrlMapAnimAdd ctrlMapAnimClear ctrlMapAnimCommit ctrlMapAnimDone
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