Advertisement
kong274

Execute Nameplate Color

Nov 12th, 2018
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. function (self, unitId, unitFrame, envTable)
  2. local max = unitFrame.healthBar.CurrentHealthMax
  3. local atual = unitFrame.healthBar.CurrentHealth
  4. local atualPercent = 100*(atual/max)
  5. if(atualPercent <=35) then
  6. Plater.SetNameplateColor (unitFrame, "#f442aa")
  7. else
  8. Plater.RefreshNameplateColor (unitFrame)
  9. end
  10.  
  11.  
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement