Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.00

Description

Description:

Removes event handler (EH), added by addEventHandler.

In V1.24+, can be applied on individual weapon rounds. The handler format is [type, index] (index is the one created by addEventHandler). Before V1.30, when a handler is removed, all handler indices higher that the deleted one are decremented.

Syntax

Syntax:target removeEventHandler [type, index]
Parameters:
Return Value:Nothing

Examples

Examples:
(group player) removeEventHandler ["WaypointComplete",0]

Additional Information

See also: addEventHandler, removeAllEventHandlers
Multiplayer:
Problems:

Notes





If you remove a "delete" EH with this command during the game cycle when the delete EH itself is fired, any EH's with a higher index than you are removing will be disabled, and therefore will not fire. Therefore avoid removing a "delete" handler when the script was called from within one to avoid undesired functionality. --
bn880
19:36, 30 August 2009 (CEST)