Skip to content

Instantly share code, notes, and snippets.

@orlp
Created November 10, 2010 21:48
Show Gist options
  • Save orlp/671588 to your computer and use it in GitHub Desktop.
Save orlp/671588 to your computer and use it in GitHub Desktop.
local model = CreateFrame("PlayerModel", "CombatIndicator", UIParent)
model:SetScript("OnAnimFinished", function(model) model:SetModel(nil) end)
model:SetScript("OnEvent", function(model) model:SetModel([[spells\rake.mdx]]) end)
model:RegisterEvent("PLAYER_REGEN_ENABLED")
model:RegisterEvent("PLAYER_REGEN_DISABLED")
model:SetSize(500, 500)
model:SetFrameStrata("BACKGROUND")
model:SetFrameLevel(0)
model:SetPoint("LEFT")
model:SetCamera(2)
model:SetPosition(0, 0, 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment