Thread Tools Display Modes
Prev Previous Post   Next Post Next
10-30-18, 03:49 PM   #1
vectros
A Murloc Raider
Join Date: Oct 2018
Posts: 6
Get UnitId of UnitIds target

Hello,

I am developing my own addon and I came to a place where I encountered the following problem:

1. I have NPC's UnitID
2. I want to compare that UnitIDs TARGET with player for example.
3. if UnitIsUnit(unitID-target, "player") then doesn't work unfortunately (I've tried all combinations of that).

Is there any way to achieve that?

Seems like there's no way to compare UnitID variable with some selector ("target", "player" etc). Am I right?

Thanks

Last edited by vectros : 10-31-18 at 12:10 AM.
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Get UnitId of UnitIds target


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off