Go to Page... |
Updated: | 06-11-11 10:33 AM |
Created: | 06-11-11 10:33 AM |
Downloads: | 136 |
Favorites: | 0 |
MD5: |
Creates a timer, which will run when "seconds" value of time has passed.StopTimer(timer_reference)
seconds -- Seconds until the timer is run. Can be fractional numbers.
callback -- The callback function to run when the timer is up
data -- (Optional) Data to send to the callback
repeating -- (Optional) If the timer shall be repeating
Function returns a reference to the timer created
Will stop an existing timer.libTimer_SetDebug(int)
timer_reference -- The reference of the timer you want to stop
Will set the level of debug messages that will be shown.
int -- Value from 0 to 10. 0 means no messages (default), 10 means a lot of messages.
function myFunc() print("This is a delayed function") end StartTimer(10, myFunc)
function myFunc(v) print("This function was called with "..v) end StartTimer(10, myFunc, "The Power of Time!")
function myFunc() print("I rise! ..again") end wicked = StartTimer(10, myFunc, nil, 1)
StopTimer(wicked)
![]() |
Comment Options |
Myrroddin |
View Public Profile |
Send a private message to Myrroddin |
Find More Posts by Myrroddin |
Add Myrroddin to Your Buddy List |
![]() |