For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /server/classes/EntityRemoveAfterEventSignal.md.

Class: EntityRemoveAfterEventSignal

event entity

Beta

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.)

Methods

subscribe()

subscribe(callback, options?): (arg0) => void

World Mutation Early Execution Beta

Parameters

callback

(arg0) => void

Function to call.

options?

EntityEventOptions

Additional filtering options for this event.

Returns

Returns a closure that can be used in subsequent unsubscribe operations.

(arg0) => void

Remarks

Will call your function every time an entity is removed from the game.


unsubscribe()

unsubscribe(callback): void

World Mutation Early Execution Beta

Parameters

callback

(arg0) => void

Returns

void

Remarks

Unsubscribes your function from subsequent calls when an entity is removed.

同领域相关