---
name: "diag_allMissionEventHandlers"
type: command
status: ok
groups: ["Diagnostic", "Event Handlers"]
arma3_since: "2.00"
locality: {"argument": null, "effect": "local", "server_exec": false}
source: https://community.bistudio.com/wiki/diag_allMissionEventHandlers
revid: 363556
updated: 2024-04-06T08:27:26Z
---

# diag_allMissionEventHandlers

*Command · Diagnostic, Event Handlers · Arma 3 v2.00*

Locality: effect **local**

## Description

Returns an array with all [mission event handlers](../commands/addMissionEventHandler.md).

## Syntax

```sqf
diag_allMissionEventHandlers
```

**Returns:** [Array](../topics/Array.md) - in format ["EH1name", EH1count, "EH2name", EH2count, ...]

## Examples

### Example 1

```sqf
diag_allMissionEventHandlers;
/*
returns:
[
    "Ended",0,
    "SelectedActionPerformed",0,
    "SelectedRotorLibActionPerformed",0,
    "SelectedActionChanged",0,
    "SelectedRotorLibActionChanged",0,
    "ControlsShifted",0,
    "Draw3D",1,
    "Loaded",0,
    "HandleDisconnect",0,
    "EntityRespawned",0,
    "EntityKilled",0,
    "MapSingleClick",0,
    "HCGroupSelectionChanged",0,
    "CommandModeChanged",0,
    "PlayerConnected",0,
    "PlayerDisconnected",0,
    "TeamSwitch",0,
    "GroupIconClick",0,
    "GroupIconOverEnter",0,
    "GroupIconOverLeave",0,
    "EachFrame",0,
    "PreloadStarted",0,
    "PreloadFinished",0,
    "Map",0,
    "PlayerViewChanged",0,
    "BuildingChanged",0,
    "MPEnded",0,
    "HandleAccTime",0,
    "ExtensionCallback",0
]
*/
```

## See also

[addMissionEventHandler](../commands/addMissionEventHandler.md) · [Arma 3: Mission Event Handlers](../topics/Mission_Event_Handlers.md)

<sub>Source: [BI Community Wiki — diag allMissionEventHandlers](https://community.bistudio.com/wiki/diag_allMissionEventHandlers) (revision 363556).</sub>
