removeAllUserActionEventHandlers: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " |game1= arma3 |version1= 2.06 |branch= dev " to " |game1= arma3 |version1= 2.06 ")
m (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 $2")
Line 25: Line 25:
|x1= <code>[[removeAllMissionEventHandlers]] ["Reload", "Activate"];</code>
|x1= <code>[[removeAllMissionEventHandlers]] ["Reload", "Activate"];</code>


|seealso= [[addUserActionEventHandler]], [[removeUserActionEventHandler]] [[Arma 3: Event Handlers#UserAction Event Handlers|UserAction Event Handlers]]
|seealso= [[addUserActionEventHandler]] [[removeUserActionEventHandler]] [[Arma 3: Event Handlers#UserAction Event Handlers|UserAction Event Handlers]]
}}
}}

Revision as of 17:30, 20 January 2022

Hover & click on the images for description

Description

Description:
Removes all UserAction event handlers of the given type which were added by addUserActionEventHandler.
This command also resets the Event Handler creation index to 0.
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:
removeAllMissionEventHandlers ["Reload", "Activate"];

Additional Information

See also:
addUserActionEventHandler removeUserActionEventHandler UserAction Event Handlers

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