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)