{"name":"ctrlMapAnimAdd","title":"ctrlMapAnimAdd","type":"command","url":"https://community.bistudio.com/wiki/ctrlMapAnimAdd","revid":377869,"updated":"2026-01-04T11:37:23Z","groups":["GUI Control - Map"],"status":"ok","games":{"arma1":"1.00","arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma1 1.00","arma3_since":"0.50","locality":{"argument":"local","effect":"local"},"description":"Adds the next frame to the map animation.","syntaxes":[{"syntax":"map ctrlMapAnimAdd [time, zoom, position]","params":[{"name":"map","type":"Control","description":"CT_MAP control","type_expr":"Control"},{"name":"time","type":"Number","description":"duration of the animation in seconds","type_expr":"Number"},{"name":"zoom","type":"Number","description":"zoom in range from 0.001 (max) to 1 (min). Custom map scales can be set in map control's config. See also ctrlMapScale","type_expr":"Number"},{"name":"position","type":"Position2D, Position3D, Object","type_expr":"Position2D | Position3D | Object"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"map"},"right":{"text":"[time, zoom, position]"}}],"examples":[{"code":["_map ctrlMapAnimAdd [1, 0.1, getMarkerPos \"anim1\"];\nctrlMapAnimCommit _map;"]},{"text":"Center map on player:\n\n```sqf\n_ctrl ctrlMapAnimAdd [0, 0.05, player];\nctrlMapAnimCommit _ctrl;\n```","code":["_ctrl ctrlMapAnimAdd [0, 0.05, player];\nctrlMapAnimCommit _ctrl;"]},{"code":["_map ctrlMapSetPosition [];\n_map ctrlMapAnimAdd [1, 0.1, getMarkerPos \"anim1\"];\nctrlMapAnimCommit _map;"]}],"problems":"When used on a CT_MAP that was created dynamically the target position could be offset. Use ctrlMapSetPosition before adding animation (Example 3).","see_also":["ctrlMapSetPosition","mapAnimAdd","mapAnimClear","mapAnimCommit","mapAnimDone","ctrlMapAnimClear","ctrlMapAnimCommit","ctrlMapAnimDone"]}