---
name: "editorSetEventHandler"
type: command
status: ok
groups: ["Game 2 Editor", "Event Handlers"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/editorSetEventHandler
revid: 363579
updated: 2024-04-07T14:46:04Z
---

# editorSetEventHandler

*Command · Game 2 Editor, Event Handlers · Arma 3 v0.50 · introduced in Arma 2 v1.00*

## Description

Sets given event handler of given editor.

> [!NOTE]
> Some Old Editor Command

## Syntax

```sqf
map editorSetEventHandler [handler name, function]
```

**Parameters:**

- `map`: [Control](../topics/Control.md)
- `handler name`: [String](../topics/String.md)
- `function`: [String](../topics/String.md)

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

## Examples

### Example 1

```sqf
_map editorSetEventHandler ["SelectObject", ""];
```

<sub>Source: [BI Community Wiki — editorSetEventHandler](https://community.bistudio.com/wiki/editorSetEventHandler) (revision 363579).</sub>
