{"name":"BIS_fnc_zoomLock","title":"BIS fnc zoomLock","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_zoomLock","revid":328000,"updated":"2022-07-13T15:48:50Z","groups":["Map and Markers"],"status":"ok","games":{"arma3":"1.78"},"since":"arma3 1.78","arma3_since":"1.78","locality":{"effect":"local"},"description":"Locks the camera in place when the map is open.","syntaxes":[{"syntax":"[cameraCenter] call BIS_fnc_zoomLock","params":[{"name":"cameraCenter","type":"Array format Position2D","optional":true,"default":"[0, 0]","description":"position where the camera should be placed and locked","type_expr":"Position2D","types":["Array","Position2D"],"text":"cameraCenter: Array format Position2D - (Optional, default [0, 0]) position where the camera should be placed and locked"}],"returns":{"type":"Nothing","type_expr":"Nothing"}}],"examples":[{"code":["[[0, 0]] call BIS_fnc_zoomLock;"]}],"see_also":["BIS_fnc_zoomUnlock","BIS_fnc_zoomLockEH"],"notes":[{"user":"Poslovitch","date":"2020-04-22T16:29:00Z","text":"In **Arma 3 v1.98.146303**, closing the map after running this function **does not unlock** the map's camera. One must use BIS_fnc_zoomUnlock to allow the player to move the camera again."}]}