Heyo I need some help figuring this function out, so what I’d like is to have a custom portrait for me as a player only, (if I target myself or if I get targeted by target of target) and the default portrait on everybody else(other players/npcs), however I can’t seem to find the right way to do it so figured I’d ask.
At the moment it displays a custom portrait on everybody, I thought something like this would work but that just puts my portrait on everybody but then again I’m bad at this, any help? -thx x)
hooksecurefunc("UnitFramePortrait_Update",function(self)if self.portrait and UnitName("player")then self.portrait:SetTexture("Interface\\AddOns\\CustomPortrait\\Me64x64Portrait")end end)