View Single Post
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