{"name":"BIS_fnc_zoomLock","operator":null,"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","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.78"}],"since":{"game":"arma3","name":"Arma 3","version":"1.78"},"arma3_since":"1.78","branch":null,"locality":{"argument":null,"effect":"local","server_exec":false},"exec":null,"description":"Locks the camera in place when the map is open.","syntaxes":[{"syntax":"[cameraCenter] call BIS_fnc_zoomLock","since":null,"effect":null,"exec":null,"params":[{"name":"cameraCenter","type":"Array format Position2D","optional":true,"default":"[0, 0]","description":"position where the camera should be placed and locked","types":["Array","Position2D"],"since":null,"text":"cameraCenter: Array format Position2D - (Optional, default [0, 0]) position where the camera should be placed and locked"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"}}],"examples":[{"text":"```sqf\n[[0, 0]] call BIS_fnc_zoomLock;\n```","code":["[[0, 0]] call BIS_fnc_zoomLock;"]}],"multiplayer":null,"problems":null,"aliases":[],"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."}],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Map and Markers","Functions","Functions: Local Effect","Introduced with Arma 3 version 1.78"],"docblock":null,"filled_from_docblock":[]}