OSRS Plugin API
    Preparing search index...

    Type Alias OnComponentOpCallback

    OnComponentOpCallback: (
        opName: string,
        usedObjType: number,
        objType: number,
    ) => void

    The callback for Events.ON_COMPONENT_OP events.

    Type Declaration

      • (opName: string, usedObjType: number, objType: number): void
      • Parameters

        • opName: string

          The action selected by the player.

        • usedObjType: number

          The type of the obj that is being used on another object, if any. -1 if none.

        • objType: number

          The type of the obj that the op is being used on.

        Returns void