removeAllUserActionEventHandlers: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Add seealso link) |
m (Example fix) |
||
(3 intermediate revisions by one other user not shown) | |||
Line 3: | Line 3: | ||
|game1= arma3 | |game1= arma3 | ||
|version1= 2.06 | |version1= 2.06 | ||
|eff= local | |eff= local | ||
Line 12: | Line 10: | ||
|descr= Removes all UserAction event handlers of the given type which were added by [[addUserActionEventHandler]]. | |descr= Removes all UserAction event handlers of the given type which were added by [[addUserActionEventHandler]]. | ||
{{Feature | important | This command also resets the Event Handler creation index to 0.}} | {{Feature|important|This command also resets the Event Handler creation index to 0.}} | ||
|s1= [[removeAllUserActionEventHandlers]] [keyName, eventType] | |s1= [[removeAllUserActionEventHandlers]] [keyName, eventType] | ||
|p1= keyName: [[String]] - | |p1= keyName: [[String]] - see [[inputAction/actions]] | ||
|p2= eventType: [[String]] - event name | |p2= eventType: [[String]] - event name; see [[Arma 3: Event Handlers#UserAction Event Handlers|UserAction Event Handlers]]. Can be one of: | ||
* "Activate" | * "Activate" | ||
* "Deactivate" | * "Deactivate" | ||
Line 25: | Line 23: | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|x1= < | |x1= <sqf>removeAllUserActionEventHandlers ["Reload", "Activate"];</sqf> | ||
|seealso= [[addUserActionEventHandler]] | |seealso= [[addUserActionEventHandler]] [[removeUserActionEventHandler]] [[Arma 3: Event Handlers#UserAction Event Handlers|UserAction Event Handlers]] | ||
}} | }} |
Latest revision as of 08:33, 27 June 2022
Description
- Description:
- Removes all UserAction event handlers of the given type which were added by addUserActionEventHandler.
- Groups:
- Event Handlers
Syntax
- Syntax:
- removeAllUserActionEventHandlers [keyName, eventType]
- Parameters:
- keyName: String - see inputAction/actions
- eventType: String - event name; see UserAction Event Handlers. Can be one of:
- "Activate"
- "Deactivate"
- "Analog"
- Return Value:
- Nothing
Examples
- Example 1:
- removeAllUserActionEventHandlers ["Reload", "Activate"];
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