Id pointing to a player animation to override. Must be non-negative or else an error will be printed. Will fail if not an integer.
Animation Id to replace the overridden animation. Must be non-negative or else an error will be printed. Will fail if not an integer.
Optionalverbose: booleanWhether overriding an animation prints information about the override. This includes what animation is being overridden, if the animation was already overridden, and what animation is overriding the other one. By default it is off.
-- Overrides dancing animation with clapping animation
-- Now any time a player dances it will appear as if they are clapping instead for the the client that called this
-- Prints: Now overriding animation 866 with 865.
osrs.setAnimationOverride(866, 865, true)
-- Overrides dancing clapping animation with waving
-- Now any time a player claps it will appear as if they are waving instead for the the client that called this
-- This does not cause dancing animation to also become a waving animation
-- Prints: Now overriding animation 865 with 863.
osrs.setAnimationOverride(865, 863, true)
Inserts an animation override, remaps the animation so that the second animation is played whenever the first animation is requested until client quit. Does not affect animations already in play. Animation overrides do not chain together, that is to say if animation A is overridden by animation B and B is overridden by animation C, when A is called animation B will play instead of C. Check game vals documentation to see what animations line up with what id.