example

self.fireTimer = pd.timer.new(self.cooldown, function ()
    self.canFire = true
  end)