Originally Posted by Ketho
Lua Code:
-- does not account for nameplates being recycled function ShowNamePlateTexture(unit) local np = C_NamePlate.GetNamePlateForUnit(unit) if np and not np.tex then np.tex = CreateFrame("PlayerModel", nil, np) np.tex:SetPoint("BOTTOM", np, "TOP") np.tex:SetSize(200, 200) np.tex:SetDisplayInfo(21723) -- Murloc Costume end end
|
Function C_NamePlate.GetNamePlateForUnit() after realise patch 7.2 is not working in dungeons and raids, it return nil, function C_NamePlate.GetNamePlates works in dungeons and raids, but when I try to take from it the necessary data it throws an error ": SetPoint (): Attempt to access forbidden object from code tainted by An AddOn ", which confirms what I wrote above.