Event Handlers/inGameUISetEventHandler – Arma 3
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "|arma|" to "|arma1|") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 1: | Line 1: | ||
{{TOC|side}} | |||
In Game UI Event Handlers trigger when user scrolls or activates in game action menu. Additionally a [[Boolean]] or [[Nothing]] is expected to be returned by the assigned code. If the assigned EH code returns [[true]], default engine action is overridden. For all other available EHs see the [[Arma_3:_Event_Handlers|main page]]. | |||
== Related Commands == | == Related Commands == | ||
* [[inGameUISetEventHandler]] | * [[inGameUISetEventHandler]] | ||
== Examples == | == Examples == | ||
< | |||
<sqf> | |||
inGameUISetEventHandler ["Action", "hint 'Lights, Camera, Action!'"]; // add EH | |||
inGameUISetEventHandler ["Action", ""]; // remove EH | |||
</sqf> | |||
== Events == | == Events == | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
! Class | ! Class | ||
Line 38: | Line 43: | ||
* [[String]] - EH event name | * [[String]] - EH event name | ||
| <!-- Since --> | | <!-- Since --> | ||
{{GVI|arma1|1. | {{GVI|arma1|1.00}} | ||
|- | |- | ||
Line 59: | Line 64: | ||
* [[String]] - EH event name | * [[String]] - EH event name | ||
| <!-- Since --> | | <!-- Since --> | ||
{{GVI|arma1|1. | {{GVI|arma1|1.00}} | ||
|- | |- | ||
Line 80: | Line 85: | ||
* [[String]] - EH event name | * [[String]] - EH event name | ||
| <!-- Since --> | | <!-- Since --> | ||
{{GVI|arma1|1. | {{GVI|arma1|1.00}} | ||
|} | |} |
Revision as of 23:39, 21 July 2022
In Game UI Event Handlers trigger when user scrolls or activates in game action menu. Additionally a Boolean or Nothing is expected to be returned by the assigned code. If the assigned EH code returns true, default engine action is overridden. For all other available EHs see the main page.
Related Commands
Examples
inGameUISetEventHandler ["Action", "hint 'Lights, Camera, Action!'"]; // add EH
inGameUISetEventHandler ["Action", ""]; // remove EH
Events
Class | Description | Arguments | Since |
---|---|---|---|
PrevAction |
Triggers on mouse wheel scroll up. |
Since 1.50
|
|
Action |
Triggers on action key press. |
Since 1.50
|
|
NextAction |
Triggers on mouse wheel scroll down. |
Since 1.50
|