inGameUISetEventHandler: Difference between revisions
Jump to navigation
Jump to search
m (merged "handler" and "name" to "handlerName" so nobody thinks these are 2 parameters) |
Killzone Kid (talk | contribs) No edit summary |
||
Line 12: | Line 12: | ||
* "NextAction" - mouse scroll down | * "NextAction" - mouse scroll down | ||
This is "set" type EH, which means it will replace previously set EH of the same type. So to remove EH, set another one with empty string "" for the function. | This is "set" type EH, which means it will replace previously set EH of the same type. So to remove EH, set another one with empty string "" for the function. | ||
|= Description | {{warning | Doesn't fire on action context}}|= Description | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 45: | Line 45: | ||
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Broken Scripting Commands|{{uc:{{PAGENAME}}}}]] |
Revision as of 17:19, 30 May 2015
Description
- Description:
- Sets given event handler of in-game UI. If EH function returns true, performed action is overridden. Event handlers available are:
- "PrevAction" - mouse scroll up
- "Action" - action key press
- "NextAction" - mouse scroll down
- Groups:
- Uncategorised
Syntax
- Syntax:
- inGameUISetEventHandler [handlerName, function]
- Parameters:
- [handlerName, function]: Array
- handlerName: String
- function: String
- Return Value:
- Nothing
Examples
- Example 1:
inGameUISetEventHandler ["Action","hint 'Lights, Camera, Action!'; true"];
Additional Information
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note