Hey there. i have when someone dies. it says dead. but i wanted to also add when there a Ghost.
Code:
local dead
if UnitIsDeadOrGhost(unit) == 1 or UnitIsConnected(unit) == nil then
color = {r = 0.4, g = 0.4, b = 0.4}
dead = 1
can i just add. local ghost and ghost =1 or is there more to it.
as i also have
Code:
if dead == 1 then
bar.bg:SetVertexColor(0,0,0,0.7)
end
if color then
self.Name:SetTextColor(color.r, color.g, color.b,1)
end
end
and the tag
Code:
if UnitIsDeadOrGhost(unit) == 1 then
string = "dead"
thanks for your time