---
name: "BIS_fnc_shakeMapEH"
type: function
status: ok
groups: ["Map and Markers", "Event Handlers"]
arma3_since: "1.78"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_shakeMapEH
revid: 329307
updated: 2022-07-27T10:12:18Z
---

# BIS_fnc_shakeMapEH

*Function · Map and Markers, Event Handlers · Arma 3 v1.78*

## Description

Event handler function for the shakeMap.sqf function

## Syntax

```sqf
[] call BIS_fnc_shakeMapEH
```

**Parameters:**

- `arg` — Select 0 - NUMBER: duration of shake effect.
  Select 1 - NUMBER: magnitude of the shaking force.
  Select 2 - ARRAY: position of the camera center around which the shake effect occurs.
  Select 3 - NUMBER: starting shake time (i.e. time elapsed since mission started till the start of the shake animation).

**Returns:** None

## Examples

### Example 1

```sqf
private _shakeEventCode = format ["[%1, %2, %3, %4] call BIS_fnc_drawMapShake", _shakeDuration, _shakeMagnitude, _shakeCenter, time];
BIS_shakeEventHandler = _map ctrladdeventhandler ["draw",_shakeEventCode];
```

## Function header

The comment at the top of the function's file in the game; this page's description, params, returns, examples come from it.

```sqf
/*
Author: Riccardo Argiolas

Description:
    Event handler function for the shakeMap.sqf function

Parameters:
Select 0 - NUMBER: duration of shake effect.
Select 1 - NUMBER: magnitude of the shaking force.
Select 2 - ARRAY: position of the camera center around which the shake effect occurs.
Select 3 - NUMBER: starting shake time (i.e. time elapsed since mission started till the start of the shake animation).

Returns: None

Examples:

    private _shakeEventCode = format ["[%1, %2, %3, %4] call BIS_fnc_drawMapShake", _shakeDuration, _shakeMagnitude, _shakeCenter, time];
    BIS_shakeEventHandler = _map ctrladdeventhandler ["draw",_shakeEventCode];
*/
```

<sub>Source: [BI Community Wiki — BIS fnc shakeMapEH](https://community.bistudio.com/wiki/BIS_fnc_shakeMapEH) (revision 329307).</sub>
