Advertisement
Guest User

Untitled

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