Posted By

ukpyr on 03/13/09


Tagged

delay lua


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

Tyster


Seconds delay


 / Published in: Lua
 

  1. --- Delay for a number of seconds.
  2. -- @param delay Number of seconds
  3. function delay_s(delay)
  4. delay = delay or 1
  5. local time_to = os.time() + delay
  6. while os.time() < time_to do end
  7. end

Report this snippet  

You need to login to post a comment.