View Single Post
05-23-16, 09:25 AM   #33
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
What do you mean useless? nameplate1 is a valid unitid like target or player.
You can compare units with UnitIsUnit or by using GetNamePlateForUnit.
http://wowprogramming.com/docs/api/UnitIsUnit
local isSame = UnitIsUnit(unitId1, unitId2)
local nameplate = C_NamePlate.GetNamePlateForUnit(unitId)
Last but not least you can snapshot certain guids and match them against nameplate guids.
http://wowprogramming.com/docs/api/UnitGUID
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)

Last edited by zork : 05-23-16 at 09:32 AM.