displayRemoveEventHandler
- Arma 3 v0.50
- First in Arma 2 v1.00
Command · also in Event Handlers · Markdown · JSON · original wiki page
Description
Remove a given event handler from the given display.
Syntax
display displayRemoveEventHandler [handlerType, id]
Parameters:
display: Display
handlerType: String - type of the event handler
id: Number - index of the event handler
Returns: Nothing
Examples
Example 1
findDisplay 46 displayRemoveEventHandler ["keyDown",5];
See also
disableSerialization · Display · displayAddEventHandler · displayRemoveAllEventHandlers
If you for example used this code to add the eventHandler:
_myEH = findDisplay 46 displayAddEventHandler ["KeyDown", "hint str _this"];
Then later in that same script you can use the _myEH private variable to remove that same eventHandler again:
findDisplay 46 displayRemoveEventHandler ["KeyDown", _myEH];
( if obviously that private variable is known to the script environment you are referencing _myEH in )