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
gyazo.com/d91c9c9cbd4ad5cc9563997c67bf7ab0
So maybe it would be possible to follow the enemy by UID?
I tried this, not sure if its correct, doesnt work
gyazo.com/eb1739d9dbb9d431e31a6ec1a137b0ac
gyazo.com/c1d237344164ba5069f1d3568ff71a4c
Was looking into enemy.UID=num ? Im not sure what you mean