Is there an alternative function instead of doing let's say this:
PHP Code:
function onCreated(){
this.chat = "Set 1";
sleep(1);
this.chat = "Set 2";
sleep(1);
this.chat = "Set 3";
sleep(1);
this.chat = "Set 3";
}
I'm scripting a baddie and I have an attack skill that does multiple damage functions set up similar to what's above. But my baddie glitches in weird ways when ever I use sleeps() so I was wondering if there were any alternatives to write what I have.
I need an
Action()
Wait(0.2)
Action()
Wait(0.2)
so on