This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
pinksheep00's profile picture

help with events

Started by pinksheep00, 22 March 2013 - 12:31 AM
pinksheep00 #1
Posted 22 March 2013 - 01:31 AM
Is there a way to print os.time() or do something else while waiting for an os.pullEvent()?
remiX #2
Posted 22 March 2013 - 01:36 AM
Use os.startTimer( 1 ), 1 is the amount of seconds and when the timer Is done it gives off the 'timer' event.

Or you can use parallel.waitForAny where you can run two functions at the same time