OSRS Plugin API
    Preparing search index...

    Function playAnimation

    • Tells the client to play an animation on the player model. This is also subject to animation overrides. Each animation has a priority and if an animation is already playing and the animation that is being called in has a higher priority than the existing animation, then the existing animation will be replaced. The original animation's priority is subject to animation override but the called animation's priority is not. Some animations may give the appearance of the player stopping in place. Check game vals documentation to see what animations line up with what id.

      Parameters

      • animId: number

        Id of animation to play. -1 will reset player model to neutral.

      Returns void

      -- Causes player model to do a spin attack animation
      osrs.playAnimation(439)