View Single Post
03-04-18, 02:13 AM   #3
runamonk
A Theradrim Guardian
 
runamonk's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2007
Posts: 61
Thanks for the response. That's almost identical to what I am doing. If I attack more than one mob at a time, so I tag one it will highlight properly (don't kill it), then I tag another unrelated mob (don't kill it) both mobs stay highlighted. It's so close! lol. Thanks.


Code:
local OnSpawnNamePlates = function(self, event, unit)
    if (UnitExists('target') and UnitIsUnit('target', unit)) then
        self:SetBackdropColor(1, 1, 1, 1)
    else
        self:SetBackdropColor(0, 0, 0, 1)
    end
end

oUF:SpawnNamePlates("mnkNames", OnSpawnNamePlates, cvars)
  Reply With Quote