BIS_fnc_mapAnimAdd
- Local argument
- Local effect
- Arma 3 v1.00
Function · Markdown · JSON · original wiki page
Description
Similar to mapAnimAdd, yet it provides additional parameters to allow for a non-linear zoom and various position interpolation modes.
Syntax
[duration, toZoom, toPosition, interpModeZoom, interpModePosition, fromZoom, fromPosition] call BIS_fnc_mapAnimAdd
Parameters:
duration: Number - (Optional, default 1.0) the animation duration in secondstoZoom: 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 vectorinterpModeZoom: Number - (Optional, default 12) the interpolation mode for the zoominterpModePosition: Number - (Optional, default 12) the interpolation mode for the positionfromZoom: 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
Returns: Nothing
Examples
Example 1
openMap true; // the function will not work if the map is not open
[2.0, 0.05, getPosASL player] call BIS_fnc_mapAnimAdd;
See also
BIS_fnc_mapAnimClear · BIS_fnc_mapAnimDone · mapAnimAdd · mapAnimClear · mapAnimCommit · mapAnimDone · ctrlMapAnimAdd · ctrlMapAnimClear · ctrlMapAnimCommit · ctrlMapAnimDone