You could do something like this:
+If Target is in line of sight of Turret
-Set Turret('target') to Target.UID
+If Target.UID is equal to Turret('target')
-X = Target.X
-Y = Target.Y
Not sure if that makes any sense, but it's an easy way of picking the right objects X and Y values if you understand it.