Utility.Event.Create

Creates a custom event. Takes an identifier and an event path as parameters. Called with Create("Identifier", "The.Event.Path") the event table will end up at Event.Identifier.The.Event.Path, and will behave like a standard Rift event table in every way. Undefined behavior if given an identifier or a path that conflicts with a built-in Rift event or an existing addon event.

Usage:

caller, handle = Utility.Event.Create(identifier, event)
ParameterTypeDatatypeDescription
eventparameterstringThe event's name. "." characters will be treated as hierarchy delimeters.
identifierparameterstringThe identifier of the addon creating this event.
callerresultfunctionA function used to trigger the event. Called with any selection of parameters, it will pass those parameters through to properly registered event handlers in order. Any errors caused by those event handlers will be caught and handled.
handleresulttableThe resulting event handle.