View Single Post
10-31-18, 12:16 AM   #4
vectros
A Murloc Raider
Join Date: Oct 2018
Posts: 6
Thank you for your replies.

1. I do have valid stored in a variable: UID. I can see it, because with message(UID) it's displayed on my screen.

2. I did think about that and it works indeed. However that works only with my target. I would like to check if every UID stored is targeting me.

I think I need a method that allows to compare variables.

local player = UnitGUID("player") -- this is my GUID
local UID = ("unitData.name) -- this is variable stored in array for multiple creatures. I would need to get it's target somehow and compare it with my GUID.

The problem is:

How do I get UID's target?
If I have UID's target, how do I compare 2 variables?
  Reply With Quote