Vivalavido Posted December 21, 2008 Share Posted December 21, 2008 Okay, im creating a bomb script, with the function setTimer(), but, its not stable at all, it sometimes activates it 4 times in a row setTimer ( bombtehtower, 6000*10, 0 ) is what I use, it keeps itself to the time, but it activates it too much in a row sometimes, how to stablize it? Link to comment
norby89 Posted December 21, 2008 Share Posted December 21, 2008 Required ArgumentstheFunction: The function you wish the timer to call. timeInterval: The number of milliseconds that should elapse before the function is called. 1000 milliseconds = 1 second. timesToExecute: The number of times you want the timer to execute, or 0 for infinite repetitions. 3rd argument is how many times you want the function to be called, in your case it's 0 which means infinite times, just change that to 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now