So, I wanted 3D models that show my player and current target over the frame. I found a string for target that (somewhat) works and tried to change the code for player and it (also somewhat) works. I was wondering if, for the target one, anyone knew how to fix a problem I have with it. It seems to break when I switch targets (defaults to the LK model) and certain models appear much lower than others.
(Event Trigger)
Code:
function()
if UnitExists("target") then
return true
end
return false
end
(Untrigger)
Code:
function()
return true
end
(Duration)
Code:
function()
WeakAuras.regions["TargetModel"].region.model:SetUnit("target")
return 0,0
end