Manages callbacks that are connected to an item use event.

Hierarchy

  • ItemUseAfterEventSignal

Constructors

Methods

Constructors

Methods

  • Parameters

    • callback: ((arg) => void)

    Returns ((arg) => void)

      • (arg): void
      • Parameters

        Returns void

        Remarks

        Adds a callback that will be called when an item is used.

        This function can't be called in read-only mode.

        This function can be called in early-execution mode.

    Remarks

    Adds a callback that will be called when an item is used.

    This function can't be called in read-only mode.

    This function can be called in early-execution mode.

  • Parameters

    • callback: ((arg) => void)

    Returns void

    Remarks

    Removes a callback from being called when an item is used.

    This function can't be called in read-only mode.

    This function can be called in early-execution mode.