Jump to content
  • 0
Sign in to follow this  
Legend

OnTimer Script

Question

Can someone teach me how OnTimer script works? im confused on how to use it.

thanks and have a nice day~

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

On a text-based explanation, these labels get executed when te timer reaches the amount of ticks specified in label. For example OnTimer1000: label will get executed when the timer reaches 1000 ticks and so on. Ticks are expresed in milliseconds, which you may remember from school they are 1/1000th of seconds, so basically 1000 ticks is a second.

Share this post


Link to post
Share on other sites
  • 0

ticks are expressed in milliseconds, so, OnTimer1000 = 1 second, OnTimer60000 = 1minute and OnTimer120000 = 1hour... is that what you mean sir? btw, thanks for replying

Edited by Legend

Share this post


Link to post
Share on other sites
  • 0

120000 ticks are 120000/1000 = 120 seconds, which is 2 minutes. A whole hour is 1000*60*60 = 3600000 milliseconds and the same number of ticks.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.