{"name":"BIS_fnc_mapAnimAdd","title":"BIS fnc mapAnimAdd","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_mapAnimAdd","revid":323161,"updated":"2022-07-01T10:31:36Z","groups":["Map and Markers"],"status":"ok","games":{"arma3":"1.00"},"since":"arma3 1.00","arma3_since":"1.00","locality":{"argument":"local","effect":"local"},"description":"Similar to mapAnimAdd, yet it provides additional parameters to allow for a non-linear zoom and various position interpolation modes.","syntaxes":[{"syntax":"[duration, toZoom, toPosition, interpModeZoom, interpModePosition, fromZoom, fromPosition] call BIS_fnc_mapAnimAdd","params":[{"name":"duration","type":"Number","optional":true,"default":"1.0","description":"the animation duration in seconds","type_expr":"Number","text":"duration: Number - (Optional, default 1.0) the animation duration in seconds"},{"name":"toZoom","type":"Number","optional":true,"default":"0.05","description":"the zoom at the end of the animation, ranging from 0.01 (max. zoom) to 1 (zoomed out)","type_expr":"Number","text":"toZoom: Number - (Optional, default 0.05) the zoom at the end of the animation, ranging from 0.01 (max. zoom) to 1 (zoomed out)"},{"name":"toPosition","type":"Position","optional":true,"default":"[0, 0, 0]","description":"the position vector","type_expr":"Position","text":"toPosition: Position - (Optional, default [0, 0, 0]) the position vector"},{"name":"interpModeZoom","type":"Number","optional":true,"default":"12","description":"the interpolation mode for the zoom","type_expr":"Number","text":"interpModeZoom: Number - (Optional, default 12) the interpolation mode for the zoom"},{"name":"interpModePosition","type":"Number","optional":true,"default":"12","description":"the interpolation mode for the position","type_expr":"Number","text":"interpModePosition: Number - (Optional, default 12) the interpolation mode for the position"},{"name":"fromZoom","type":"Number","optional":true,"default":"current map zoom","description":"the zoom at the begnning of the animation, ranging from 0.01 (max. zoom) to 1 (zoomed out)","type_expr":"Number","text":"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)"},{"name":"fromPosition","type":"Array format Position","optional":true,"default":"current map position","description":"the position vector from which to start the animation","type_expr":"Position","types":["Array","Position"],"text":"fromPosition: Array format Position - (Optional, default current map position) the position vector from which to start the animation"}],"returns":{"type":"Nothing","type_expr":"Nothing"}}],"examples":[{"code":["openMap true; // the function will not work if the map is not open\n[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"]}