---
name: "BIS_fnc_zoomLock"
type: function
status: ok
groups: ["Map and Markers"]
arma3_since: "1.78"
locality: {"argument": null, "effect": "local", "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_zoomLock
revid: 328000
updated: 2022-07-13T15:48:50Z
---

# BIS_fnc_zoomLock

*Function · Map and Markers · Arma 3 v1.78*

Locality: effect **local**

## Description

Locks the camera in place when the map is open.

## Syntax

```sqf
[cameraCenter] call BIS_fnc_zoomLock
```

**Parameters:**

- `cameraCenter`: [Array](../topics/Array.md) format [Position2D](../topics/Position.md#introduction) - (Optional, default [0, 0]) position where the camera should be placed and locked

**Returns:** [Nothing](../topics/Nothing.md)

## Examples

### Example 1

```sqf
[[0, 0]] call BIS_fnc_zoomLock;
```

## See also

[BIS_fnc_zoomUnlock](../functions/BIS_fnc_zoomUnlock.md) · [BIS_fnc_zoomLockEH](../functions/BIS_fnc_zoomLockEH.md)

## Community notes

**Poslovitch** — 2020-04-22

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](../functions/BIS_fnc_zoomUnlock.md) to allow the player to move the camera again.

<sub>Source: [BI Community Wiki — BIS fnc zoomLock](https://community.bistudio.com/wiki/BIS_fnc_zoomLock) (revision 328000).</sub>
