---
name: "BIS_fnc_shakeMap"
type: function
status: ok
groups: ["Map and Markers"]
arma3_since: "1.78"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_shakeMap
revid: 348853
updated: 2023-11-08T14:39:12Z
---

# BIS_fnc_shakeMap

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

## Description

"Camera shake" function for the map. Shakes the map for a given amount of time with a given amount of force around the given camera center. Exits if map is not open.

## Syntax

```sqf
[duration, magnitude, center] call BIS_fnc_shakeMap
```

**Parameters:**

- `duration`: [Number](../topics/Number.md) - duration of the effect
- `magnitude`: [Number](../topics/Number.md) - magnitude of the shaking force
- `center`: [Array](../topics/Array.md) - center [position](../topics/Position.md) of the effect

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

## Examples

### Example 1

```sqf
[2,20,getMarkerPos "BIS_markerExtraction0"] call BIS_fnc_shakeMap;
```

### Example 2

```sqf
[2,20,getPos player] call BIS_fnc_shakeMap;
```

## See also

[BIS_fnc_shakeMapEH](../functions/BIS_fnc_shakeMapEH.md)

<sub>Source: [BI Community Wiki — BIS fnc shakeMap](https://community.bistudio.com/wiki/BIS_fnc_shakeMap) (revision 348853).</sub>
