Originally Posted by Resike
Except UnitIsUnit("nameplate1", "target") returns false even if you are targeting the unit with nameplate1.
|
Try using UnitIsUnit("target", "nameplate1")
And check if you are targeting the nameplate with the unitID "nameplate1" and the unit currently using "NamePlate1"...
Getting a unitID from blizzards nameplates:
Lua Code:
local unitID = nameplate.namePlateUnitToken
Originally Posted by Resike
Whats the point of the new system, if you get an alternative unitid then you need to get its guid then compare that with the a real unitids guid?
|
It works exactly the same if you target lets say raid24 ... raid 24 is a unitID, and target is also a unitID referring to the same unit if targeted...
So "nameplate#" can be the same unit as raid# / player / target / focus ....