RemoveEventHandler
A command for Oblivion Script Extender
Syntax:
(removed:bool) RemoveEventHandler eventID:string functionScript:ref filter1:pair filter2:pair
Removes the specified script as an event handler for the specified event. Two optional arguments can be supplied as key::value pairs to filter events according to the target and/or object. If both filters are omitted, all event handlers matching the script and event will be removed. If only one filter is omitted, all handlers matching the script, event, and the other filter will be removed. Returns true if at least one matching event handler was found and removed, false otherwise.
For more details on events and for a list of available events to hook into, see Event_Handler_Functions.
ExampleEdit
Removes the "OnHit" event handler for your script where the object is Player:
RemoveEventHandler "OnHit", yourscript, "object"::Player
NotesEdit
none