Hello, I'm making simple script wich attacks zombies. For some reason it waits till npc dieing animation is ended.
if (getNpcs().closest("Zombie").getHealth() != 0 && !getCombat().isFighting() && getNpcs().closest("Zombie").isAttackable() && !myPlayer().isAnimating())
return State.ATTACK;
And there is anyway to attack random npc not the closest one?
Thanks for answers.