Not really understanding the question because your logic is not to follow by UID but to find path on the enemy that is clicked? Clicking the enemy picks it so you can find a path. To find by UID would be something like condition enemy.UID=num, find path to enemy but with a trigger once added.
I got it to Follow from a distance how I want it but if there is another enemy near, eventually he follows that one gyazo.com/90e82733a4edd2b11324198b90904390
I want him to follow the same enemy unless lost of sight or clicked off
I used 2 different lineofsight behaviors, its works but as said it starts following the other
So maybe it would be possible to follow the enemy by UID?
I tried this, not sure if its correct, doesnt work
Was looking into enemy.UID=num ? Im not sure what you mean