There is a script called for an NPC called GEN_SPLINEBEHAVIOUR, in it you can add animations. Haven't tried it out yet though so don't know if it'll work.