Script API - v1.26.10
    Preparing search index...

    Class EntityRemoveAfterEventSignal

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

    export class EntityRemoveAfterEventSignal {
    private constructor();
    subscribe(
    callback: (arg0: EntityRemoveAfterEvent) => void,
    options?: EntityEventOptions,
    ): (arg0: EntityRemoveAfterEvent) => void;
    unsubscribe(callback: (arg0: EntityRemoveAfterEvent) => void): void;
    }
    Index

    Constructors

    Methods

    Constructors

    Methods

    • Parameters

      Returns void

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

      This function can't be called in restricted-execution mode.

      This function can be called in early-execution mode.