time.sleep(Number)
there is none.schedule(%time, %hostObject, %function, %arguments, %arguments, %arguments);is the best you're gonna get.
as a terrible alternative:Code: [Select]function pause(%x){ %start = getrealtime(); while(getrealtime() - %start < %x) continue; echo("done.");}
function pause(%x){ %start = getrealtime(); while(getrealtime() - %start < %x) continue; echo("done.");}
Just making a guess as to what time.sleep does in python
It delays the code by a set amount of secondsHmm that might work
function yourModTick(){ cancel($YourMod::Tick::Schedule); $YourMod::Tick::Schedule = schedule(500,yourModTick); //Do whatever you need to have happen here}
getcontrolobjectspeed();
Instead of having one schedule with a loop and an isObject check, creatschedules for every player using the following code. When the player object is removed it automatically stops it. Remember to start it when a player spawns, though!
That's a lot more schedule loops running at once. Wouldn't it be more efficient to just have the single, global schedule loop?