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

    Class EntityHurtBeforeEventSignal

    Manages callbacks that are connected to when an entity will be hurt.

    export class EntityHurtBeforeEventSignal {
    private constructor();
    subscribe(
    callback: (arg0: EntityHurtBeforeEvent) => void,
    options?: EntityHurtBeforeEventOptions,
    ): (arg0: EntityHurtBeforeEvent) => void;
    unsubscribe(callback: (arg0: EntityHurtBeforeEvent) => void): void;
    }
    Index

    Constructors

    Methods

    Constructors

    Methods

    • Parameters

      • callback: (arg0: EntityHurtBeforeEvent) => void

        This closure is called with restricted-execution privilege.

      Returns void

      Removes a callback from being called when an entity will be hurt.

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

      This function can be called in early-execution mode.