I call this the "Mate" variable (literally I do, but it isn't its technical term).
I'll try explain it:
When you create the sprite which is associated with the player or the enemy, assign a variable in itself to the UID of the object it is associated (or tracking in your case) with. Then when you want to conditional or action against it, pick the Object by UID against the "Mate" variable.
If this doesn't make sense let me know and I'll try get a capx or screenshots sorted.
Keep in mind using IID for references in enemies and sprites can cause issues because if an enemy or sprite is destroyed, the IID for the next enemy/sprite can conflict