Lslua timer module Thread last updated on 2006-07-21 02:44:36

Posted by member 321598 on 2006-07-20 21:18:15

What's the syntax for timer.pause?

I'm reading the manual and according to it, I'm suppose to just call it with the amount of time I want to pause ie timer.pause(2000)

but running the following code inside the lslua.init() stops after the pause and never resumes
require 'timer'
lslua.message_box('asdwasdf')
timer.pause(3000)
lslua.message_box('wasdf')


I just want a simple pause for 3 seconds.

Posted by member 5575 on 2006-07-20 22:10:43 link

The timer module in lua has some issues. Check out this thread for some potential workarounds:

http://www.litestep.net/index.php?section=4&action=view&catId=3&id=5474&hl=timer+lua

Posted by member 212670 on 2006-07-21 02:44:36 link

The big thing to note is: timer.lua.dll still requires that you load timer-0.5