Skip to content

Instantly share code, notes, and snippets.

@PProvost
Created February 9, 2009 20:57
Show Gist options
  • Save PProvost/60986 to your computer and use it in GitHub Desktop.
Save PProvost/60986 to your computer and use it in GitHub Desktop.
Wow/Lua minitimer code from wowprogramming.com
-- From http://wowprogramming.com/misc/snippets/Minitimer
local total = 0
local function onUpdate(self,elapsed)
total = total + elapsed
if total >= 2 then
print("ping!")
total = 0
end
end
local f = CreateFrame("frame")
f:SetScript("OnUpdate", onUpdate)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment