{"name":"BIS_fnc_mapAnimAdd","operator":null,"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","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.00"}],"since":{"game":"arma3","name":"Arma 3","version":"1.00"},"arma3_since":"1.00","branch":null,"locality":{"argument":"local","effect":"local","server_exec":false},"exec":null,"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","since":null,"effect":null,"exec":null,"params":[{"name":"duration","type":"Number","optional":true,"default":"1.0","description":"the animation duration in seconds","types":["Number"],"since":null,"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)","types":["Number"],"since":null,"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","types":["Position"],"since":null,"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","types":["Number"],"since":null,"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","types":["Number"],"since":null,"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)","types":["Number"],"since":null,"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","types":["Array","Position"],"since":null,"text":"fromPosition: Array format Position - (Optional, default current map position) the position vector from which to start the animation"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"}}],"examples":[{"text":"```sqf\nopenMap true; // the function will not work if the map is not open\n[2.0, 0.05, getPosASL player] call BIS_fnc_mapAnimAdd;\n```","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;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["BIS_fnc_mapAnimClear","BIS_fnc_mapAnimDone","mapAnimAdd","mapAnimClear","mapAnimCommit","mapAnimDone","ctrlMapAnimAdd","ctrlMapAnimClear","ctrlMapAnimCommit","ctrlMapAnimDone"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Map and Markers","Functions","Functions: Local Effect","Introduced with Arma 3 version 1.00"],"docblock":null,"filled_from_docblock":[]}