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

    Class ItemUseBeforeEventSignal

    Advertisement

    Manages callbacks that fire before an item is used.

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Parameters

      • callback: (arg0: ItemUseBeforeEvent) => void

        This closure is called with restricted-execution privilege.

      Returns (arg0: ItemUseBeforeEvent) => void

      Closure that is called with restricted-execution privilege.

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

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

      This function can be called in early-execution mode.

    • Parameters

      • callback: (arg0: ItemUseBeforeEvent) => void

        This closure is called with restricted-execution privilege.

      Returns void

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

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

      This function can be called in early-execution mode.

    Advertisement