1 posts
Posted 06 January 2014 - 07:06 PM
Is there a piece of code or something like that used to make the script wait a couple seconds, then proceed? I've tried a bunch of different ways to do it with the wait() command but now I'm almost positive that that command doesn't exist.
8543 posts
Posted 06 January 2014 - 08:36 PM
sleep().
53 posts
Posted 07 January 2014 - 02:46 PM
sleep(<nb_of_second_you_want_to_sleep>)
With no argument, it waits 0s (only yields, for use in infinite loop, or parallel)
edit : with no argument, it errors (see my neighbour of below)
Edited on 12 January 2014 - 01:47 PM
91 posts
Posted 07 January 2014 - 08:33 PM
sleep(<nb_of_second_you_want_to_sleep>)
With no argument, it waits 0s (only yields, for use in infinite loop, or parallel)
if you code sleep() without a number it errors.