Private
constructorFunction to call.
Optional
options: EntityEventOptionsAdditional filtering options for this event.
Optional
Returns a closure that can be used in subsequent unsubscribe operations.
Returns a closure that can be used in subsequent unsubscribe operations.
Will call your function every time an entity is removed from the game.
This function can't be called in read-only mode.
This function can be called in early-execution mode.
Will call your function every time an entity is removed from the game.
This function can't be called in read-only mode.
This function can be called in early-execution mode.
Allows registration for an event that fires when an entity is removed from the game (for example, unloaded, or a few seconds after they are dead.)