function updateTimer() dr_clear("timer") dr_setautoclear("timer",0) local time = Universe_GameTime(); local h = floor(time/3600.0); local m = floor(time/60.0 - h*60); local s = time - m*60 - h*3600; local str = format("Time: %2.0fh %2.0fm %3.1fs",h, m, s) dr_text2d("timer",0.0,0.98,str, 255,255,255) end Rule_AddInterval("updateTimer", 2)