---
name: "BIS_fnc_callScriptedEventHandler"
type: function
status: ok
groups: ["Event Handlers"]
arma3_since: "1.00"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_callScriptedEventHandler
revid: 327926
updated: 2022-07-13T12:24:31Z
---

# BIS_fnc_callScriptedEventHandler

*Function · Event Handlers · Arma 3 v1.00*

## Description

Calls all the codes assigned to scripted event handler with given name. Since Arma 3 v1.68 the code receives current EH id in the special variable: `_thisScriptedEventHandler`

## Syntax

```sqf
[namespace, name, arguments, returnResults] call BIS_fnc_callScriptedEventHandler
```

**Parameters:**

- `namespace`: [Namespace](../topics/Namespace.md), [Object](../topics/Object.md), [Group](../topics/Group.md), [Location](../topics/Location.md), [Boolean](../topics/Boolean.md), [Control](../topics/Control.md) or [Display](../topics/Display.md) - namespace in which handler is saved
- `name`: [String](../topics/String.md) - handler name
- `arguments`: [Array](../topics/Array.md) - array of arguments passed to the EH code
- `returnResults`: [Boolean](../topics/Boolean.md) - (Optional, default [false](../commands/false.md)) if [true](../commands/true.md) EH will place results from each code execution into an array using EH id as index

**Returns:** [Array](../topics/Array.md) - array with EH results or empty array

## Examples

### Example 1

```sqf
[missionNamespace, "event", [player, 123]] call BIS_fnc_callScriptedEventHandler;
```

## See also

[BIS_fnc_addScriptedEventHandler](../functions/BIS_fnc_addScriptedEventHandler.md) · [BIS_fnc_removeScriptedEventHandler](../functions/BIS_fnc_removeScriptedEventHandler.md) · [BIS_fnc_removeAllScriptedEventHandlers](../functions/BIS_fnc_removeAllScriptedEventHandlers.md)

<sub>Source: [BI Community Wiki — BIS fnc callScriptedEventHandler](https://community.bistudio.com/wiki/BIS_fnc_callScriptedEventHandler) (revision 327926).</sub>
