Hello
I'm making a talkaction and I want to to execute 1 function 10~ times, and I want it to have delay of 2 seconds between each execution
What's the best way to do it?
I tried this but failed:
Thanks
I'm making a talkaction and I want to to execute 1 function 10~ times, and I want it to have delay of 2 seconds between each execution
What's the best way to do it?
I tried this but failed:
Lua:
local x = 1
while x < 10 do
addEvent(doSomething(), 2000)
x=x+1
end
Thanks