PlayObjectAnimation("SlaveGob_1", "attack00", IDLE);
sleep(2)
But instead of waiting for two seconds (which are seconds, right?), this goblin, as if ignoring the bottom line, gets stuck in a loop with the animation without any visible delays. I need it to hit the ore, wait two seconds, and then hit it again, repeating the cycle endlessly.