View Single Post
11-18-19, 04:08 PM   #7
Mandraxon
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Jul 2009
Posts: 21
Originally Posted by SDPhantom View Post
Oh, right. I forgot the function is called as NamePlateDriverFrame:OnNamePlateCreated(...). I adjusted the argument list in my previous post to fix that.
thanks man..
I tested it now and No errors
but the hookpoint does not seam to work

Code:
    --  Move nametag
    hooksecurefunc(NamePlateDriverFrame,"OnNamePlateCreated",function(_,base)--   Hook nameplate creation function
        local unitframe=base.UnitFrame;--   UnitFrame attached to nameplate base
        unitframe.name:ClearAllPoints();--  Clear nametag anchors
     
    --  Set new anchor(s) here
        unitframe.name:SetPoint("BOTTOM",unitframe.healthBar,"TOP",0,4);
    end);
TOP",0,4); i changed both the 0 and 4 and nothing moves =/ even as high as 0,25 and nothing..

/M
  Reply With Quote