inGameUISetEventHandler: Difference between revisions
Jump to navigation
Jump to search
m (Text replace - "{{uc:{{PAGENAME}}}}" to "{{uc:{{PAGENAME}}}} {{uc:{{PAGENAME}}}}") |
Killzone Kid (talk | contribs) (Description) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Sets given event handler of in-game UI. |= Description | | Sets given event handler of in-game UI. If EH code returns [[true]], performed action is overridden. Event handlers available are: | ||
* "PrevAction" - mouse scroll up | |||
* "Action" - action key press | |||
* "NextAction" - mouse scroll down | |||
|= Description | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 13: | Line 17: | ||
|p1= [handler name, function]: [[Array]] |= Parameter 1 | |p1= [handler name, function]: [[Array]] |= Parameter 1 | ||
|p2= handler name: [[String]] |= Parameter 1 | |||
|p3= function: [[String]] |= Parameter 1 | |||
| [[Nothing]] |= Return value | | [[Nothing]] |= Return value | ||
|x1= <code>[[inGameUISetEventHandler]] ["Action","hint 'Lights, Camera, Action!'; true"];</code>|= EXAMPLE1 | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | [[addEventHandler]], [[ctrlAddEventHandler]], [[displayAddEventHandler]] |= See also | ||
}} | }} |
Revision as of 16:58, 21 January 2015
Description
- Description:
- Sets given event handler of in-game UI. If EH code 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 [handler name, function]
- Parameters:
- [handler name, function]: Array
- handler name: 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