RemoveEventHandler
Revision as of 23:03, 3 January 2012 by imported>8asrun6aer
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.
Example
Removes the "OnHit" event handler for your script where the object is Player:
RemoveEventHandler "OnHit", yourscript, "object"::Player
Notes
none