DispatchEvent
Jump to navigation
Jump to search
A command for Oblivion Script Extender
Syntax:
(dispatched:bool) DispatchEvent eventName:string args:StringMap senderName:string
Dispatches a user-defined event to any registered listeners.
The eventName parameter specifies the event that occurred; this should be fairly unique to prevent event name clashes between different mods, but the event handler can also disambiguate name clashes by checking the name of the event sender if necessary.
The optional second parameter is a StringMap containing any additional information about the event. When the event is dispatched, the array will also include the event name and the name of the sender. If omitted, the name of the sender is the filename from which the event originated; otherwise it matches the supplied third argument.