util.lua 146 B

1234567891011
  1. timer = {}
  2. timer.rot = function(v, fn)
  3. if v > 0 then
  4. v = v - tickRate
  5. if v <= 0 then
  6. v = 0
  7. v = f.exe(fn) or 0
  8. end
  9. end
  10. return v
  11. end