User-Defined Event

From GECK
Jump to: navigation, search

A User-Defined Event is an event which is dispatched inside a script, instead of by NVSE or an NVSE plugin.

To avoid naming conflicts, it is recommended to add a part of the mod's name to the event name, or some other additional identifier.

Unlike plugin-defined events, these events are not defined with types for their arguments. This means that for functions such as SetEventHandlerAlt, if attempting to set a handler with a filter of any type for the nth arg, no type-checking will occur. This means users of a user-defined event will have to be careful with having the right types for filters, as they will get no immediate warning if they get it wrong.

See Also