Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2016
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. With -GetTime(): (works)
  2. iTF.frames[unitID].castBar:SetMinMaxValues(starttime-GetTime(), endtime-GetTime())
  3. iTF.frames[unitID].castBar:SetScript('OnUpdate', function()
  4. iTF.frames[unitID].castBar:SetValue(GetTime()-starttime)
  5. end)
  6.  
  7. Without -GetTime():
  8. iTF.frames[unitID].castBar:SetMinMaxValues(starttime, endtime)
  9. iTF.frames[unitID].castBar:SetScript('OnUpdate', function()
  10. iTF.frames[unitID].castBar:SetValue(GetTime())
  11. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement