WoWInterface - View Single Post - How to check if Unit target is player
View Single Post
10-20-18, 12:56 PM   #3
A Murloc Raider
Join Date: Oct 2018
Posts: 5
Thank you for your reply, Tim.

However I think that you got my idea wrong.

I want to create mobs nameplates, so if they target me they have different colour then those not targetting me.

So, if mob's target = me, it should do something.

With code you written, it should do something if my current target is player.

The quote I quoted works the way I want, however only partially, for a single mob. If there are more than 1 it's broken.

I think that there will be some stuff with unitID gathering into an array, and checking every single ID if their's target is player.

No idea how to do that though.