addUserActionEventHandler: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Lou Montana (talk | contribs) m (Text replacement - " |game1= arma3 |version1= 2.06 |branch= dev " to " |game1= arma3 |version1= 2.06 ") |
||
Line 3: | Line 3: | ||
|game1= arma3 | |game1= arma3 | ||
|version1= 2.06 | |version1= 2.06 | ||
|eff= local | |eff= local |
Revision as of 18:27, 5 October 2021
Description
- Description:
- Adds event handler attached to the current mission and returns event handler handle. For a list of available UserAction event handlers, see: Arma 3: Mission Event Handlers.
- Groups:
- Event Handlers
Syntax
- Syntax:
- addUserActionEventHandler [keyName, event, expression]
- Parameters:
- keyName: String - action key name - see inputAction/actions
- event: String - event name - see UserAction Event Handlers. Can be one of:
- "Activate"
- "Deactivate"
- "Analog"
- expression: Code - Expression that will be executed in missionNamespace when event handler fires.
- Return Value:
- Number - The index of the currently added UserAction event handler is returned
Examples
- Example 1:
private _ehId = addUserActionEventHandler ["Reload", "Activate", { systemChat "reloading!"; }];
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