adding if's to stop animate commands running on non-player type npc's