  var seconds_match = /^(\d)*s$/;
  function Cooldown(frames)
  {
    frames = frames || 10
    if ($.type(frames) == "string")
    {
      var seconds = frames.match(seconds_match)
      if (seconds)
      {
        frames = seconds[1] * runtime.fps
      }
      else
      {
        frames = parseInt(frames)
      }
    }
    var total = frames

    var result = false
    this.set_result = function(new_result)
    {
      result = new_result
    }
    this.frame = function()
    {
      frames--
      if (frames <= 0)
        return result
      return this
    }

    this.get_remaining = function()
    {
      return total - frames
    }
    this.get_pctdone = function()
    {
      return (total - frames) / total
    }
  }

@@ -49,24 +49,39 @@
 ldown(frames
+, inital_result
 )%0A  %7B%0A    fr
@@ -458,24 +458,100 @@
 esult%0A    %7D%0A
+%0A    if ($.isFunction(inital_result))%0A      this.set_result(inital_result)%0A%0A
     this.fra
@@ -653,24 +653,156 @@
 this%0A    %7D%0A%0A
+    this.reset = function()%0A    %7B%0A      frames = total%0A    %7D%0A    this.is_done = function()%0A    %7B%0A      return frames %3E= total%0A    %7D%0A
     this.get

Add a shortcut to set the result function in Cooldown