Difference between revisions of "RemoveEventHandler"
Jump to navigation
Jump to search
imported>8asrun6aer (Created page with "A command for Oblivion Script Extender '''Syntax:''' (removed:bool) RemoveEventHandler eventID:string functionScript:ref filter1:pair ...") |
imported>8asrun6aer m |
||
Line 7: | Line 7: | ||
For more details on events and for a list of available events to hook into, see [[Event_Handler_Functions]]. | 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== | ==Notes== | ||
'''none''' | |||
==See Also== | ==See Also== |
Latest revision as of 23:03, 3 January 2012
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[edit | edit source]
Removes the "OnHit" event handler for your script where the object is Player:
RemoveEventHandler "OnHit", yourscript, "object"::Player
Notes[edit | edit source]
none