---
name: "Arma 3: Event Handlers/inGameUISetEventHandler"
type: topic
source: https://community.bistudio.com/wiki/Arma_3:_Event_Handlers/inGameUISetEventHandler
revid: 329058
updated: 2022-07-21T22:47:14Z
---

# Arma 3: Event Handlers/inGameUISetEventHandler

In Game UI Event Handlers trigger when user scrolls or activates in game action menu. Additionally a [Boolean](../topics/Boolean.md) or [Nothing](../topics/Nothing.md) is expected to be returned by the assigned code. If the assigned EH code returns [true](../commands/true.md), default engine action is overridden. For all other available EHs see the [main page](../topics/Event_Handlers.md).

> [!IMPORTANT]
> Arguments were introduced with Arma 3 v1.50.

### Related Commands

- [inGameUISetEventHandler](../commands/inGameUISetEventHandler.md)

### Examples

```sqf
inGameUISetEventHandler ["Action", "hint 'Lights, Camera, Action!'"];    // add EH
inGameUISetEventHandler ["Action", ""];                                    // remove EH
```

### Events

| Class | Description | Arguments - since Arma 3 v1.50 |
|---|---|---|
| **PrevAction** | Triggers on mouse wheel scroll up. | `params ["_target", "_caller", "_index", "_name", "_text", "_priority", "_showWindow", "_hideOnUse", "_shortcut", "_visibility", "_eventName"];`<br>- [Object](../topics/Object.md) - target object to which action is attached<br>- [Object](../topics/Object.md) - caller object, basically [player](../commands/player.md)<br>- [Number](../topics/Number.md) - index of the action in action menu (0 - top most)<br>- [String](../topics/String.md) - engine based action name ("User" for user added actions)<br>- [String](../topics/String.md) - [localized](../commands/localize.md) action plain text as seen by the caller<br>- [Number](../topics/Number.md) - action *priority* value<br>- [Boolean](../topics/Boolean.md) - action *showWindow* value<br>- [Boolean](../topics/Boolean.md) - action *hideOnUse* value<br>- [String](../topics/String.md) - action *shortcut* name or ""<br>- [Boolean](../topics/Boolean.md) - action menu visibility (on first scroll or action press the menu is still invisible, so no action is performed, only menu is shown)<br>- [String](../topics/String.md) - EH event name |
| **Action** | Triggers on action key press. | `params ["_target", "_caller", "_index", "_name", "_text", "_priority", "_showWindow", "_hideOnUse", "_shortcut", "_visibility", "_eventName"];`<br>- [Object](../topics/Object.md) - target object to which action is attached<br>- [Object](../topics/Object.md) - caller object, basically [player](../commands/player.md)<br>- [Number](../topics/Number.md) - index of the action in action menu (0 - top most)<br>- [String](../topics/String.md) - engine based action name ("User" for user added actions)<br>- [String](../topics/String.md) - [localized](../commands/localize.md) action plain text as seen by the caller<br>- [Number](../topics/Number.md) - action *priority* value<br>- [Boolean](../topics/Boolean.md) - action *showWindow* value<br>- [Boolean](../topics/Boolean.md) - action *hideOnUse* value<br>- [String](../topics/String.md) - action *shortcut* name or ""<br>- [Boolean](../topics/Boolean.md) - action menu visibility (on first scroll or action press the menu is still invisible, so no action is performed, only menu is shown)<br>- [String](../topics/String.md) - EH event name |
| **NextAction** | Triggers on mouse wheel scroll down. | `params ["_target", "_caller", "_index", "_name", "_text", "_priority", "_showWindow", "_hideOnUse", "_shortcut", "_visibility", "_eventName"];`<br>- [Object](../topics/Object.md) - target object to which action is attached<br>- [Object](../topics/Object.md) - caller object, basically [player](../commands/player.md)<br>- [Number](../topics/Number.md) - index of the action in action menu (0 - top most)<br>- [String](../topics/String.md) - engine based action name ("User" for user added actions)<br>- [String](../topics/String.md) - [localized](../commands/localize.md) action plain text as seen by the caller<br>- [Number](../topics/Number.md) - action *priority* value<br>- [Boolean](../topics/Boolean.md) - action *showWindow* value<br>- [Boolean](../topics/Boolean.md) - action *hideOnUse* value<br>- [String](../topics/String.md) - action *shortcut* name or ""<br>- [Boolean](../topics/Boolean.md) - action menu visibility (on first scroll or action press the menu is still invisible, so no action is performed, only menu is shown)<br>- [String](../topics/String.md) - EH event name |

<sub>Source: [BI Community Wiki — Arma 3: Event Handlers/inGameUISetEventHandler](https://community.bistudio.com/wiki/Arma_3:_Event_Handlers/inGameUISetEventHandler) (revision 329058).</sub>
