I'm trying to get the PVP icon to show on the unit frames, I've come up with the following but it its on all the time whether I'm flagged or not:
local pvp = self:CreateTexture(nil, "OVERLAY")
pvp:SetHeight(16)
pvp:SetWidth(16)
pvp:SetPoint("RIGHT", self, "LEFT")
pvp:SetTexture"Interface\\PVPFrame\\PVP-Currency-Horde"
self.PvP = pvp
Is there a separate OnUpdate check I need to have? Any help is appreciated.