Script API - v26.60
    Preparing search index...

    Class EntityRemoveBeforeEventSignal

    Allows registration for an event that fires when an entity is being removed from the game (for example, unloaded, or a few seconds after they are dead.)

    export class EntityRemoveBeforeEventSignal {
    private constructor();
    subscribe(callback: (arg0: EntityRemoveBeforeEvent) => void): (arg0: EntityRemoveBeforeEvent) => void;
    unsubscribe(callback: (arg0: EntityRemoveBeforeEvent) => void): void;
    }
    Index
    • Parameters

      Returns void

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

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

      early-execution-allowed - This function can be called in early-execution mode.