View Single Post
  #48  
Old 04-27-2011, 04:30 PM
Ataros Ataros is offline
Approved Member
 
Join Date: Jun 2010
Location: USSR
Posts: 2,439
Default

Quote:
Originally Posted by ZaltysZ View Post
Code:
if (Time.tickCounter() % 72000 == 0)
Will be TRUE every time tickCounter() returns multiple of 72000 (i.e. every time 72000 ticks pass, when counted from 0: 72000, 2*72000, 3*72000 and so on).
And if I want to delay the first execution by 71999 ticks it should be like follows?
Code:
if (Time.tickCounter() % 72000 == 71999)
Thanks a lot for your help.
Reply With Quote