Author Topic: How to make a Delayed FOR loop?  (Read 355 times)

In a script im making, I need to make a for loop that waits a specified ammount of time before continuing on to the next segment of the for loop, without needing to use outside functions. this is all inside 1 for loop.
this is what i've tryed:
Code: [Select]
for(%i = 0; %i < %loops; %i++)
{
%ans[%i] = %loops / %i;
schedule(%delay, 0, "Continue");
}
But it doesnt work.
How can I make this work?

http://forum.blockland.us/index.php?topic=26457.0

Alternatively, you can have a schedule multiplied by %i to make it seem like there was a delay in the loop.

ie 60*%i

Alternatively, you can have a schedule multiplied by %i to make it seem like there was a delay in the loop.

ie 60*%i
And by doing that nothing else in the engine can happen meaning it will lag.

And by doing that nothing else in the engine can happen meaning it will lag.
hm.


Never thought of it that way.

You can't make that work.

You need to use a scheduled function loop to make delays.