OSRS Plugin API
    Preparing search index...

    Function playSound

    • Plays the specified sound effect. Check game vals documentation to see what sound line up with what id.

      Parameters

      • soundId: number

        Id of sound effect to be played. Will fail if not an integer.

      • Optionalloops: number

        How many times the sound is played. By default the sound will be played a single time. If the amount played is 0 or negative the sound will infinitely loop. Will resort to default if not an integer.

      • Optionaldelay: number

        Delay before sound plays. The unit of delay is 1/50th of a second. By default it is 0. Will resort to default if not an integer.

      Returns void

      -- Will play a sound of an attack hitting
      osrs.playSound(2498)