Skip to content
ConcordConcordConcord

World:beforeSystemCallback

Callback before World:emit forwards an event to a System.

← World

Callback before World:emit forwards an event to a System.

Returning a truthy value skips the System listener and afterSystemCallback for this event. Nested emits are forbidden inside this callback

skip = world:beforeSystemCallback( system, eventName, ... )
Name Type Description
system System System that is being called
eventName string Name of the event being emitted
... any Parameters passed to World:emit
Name Type Description
skip boolean? Truthy to skip the System listener and afterSystemCallback