Originally Posted by lieandswell
Yes, all NamePlate# frames are protected unit frames. I'm pretty sure, however, that the NamePlate#UnitFrame frames aren't protected. They're not clickable and are just there to show information. You should be able to use zork's code on them.
|
That is the problem. I use the code from zork and here I got the posted error.
Code:
if not UnitIsUnit(frame.displayedUnit, "player") then return end
produces on login, reload, combat start or visible / present nameplates a error. Same issue happens if I adjust the code for my nameplate-script. Outside of combat the positioning works very well, but infight ...
That's the reason why I mentioned that repositing is protected infight. Infight the class nameplate moves with the cameraposition and do no stay at my prevered position (bottom, 0, 370).