Hi,
There are actually several ways you can do this.
You could get 'array maker' on the
EcosystemUse a trigger and if an enemy goes inside, add it to an array list and if they go outside the trigger (On Trigger Exit) remove them from the array. (array list contains, then use the index nr and array list remove at)
Then on a different fsm use 'Array List Get Closest Game Object'
Or you could place all enemies and use Array List Get Closest Game Object In Sight.
on the
User tutorial wiki page you can find several tutorials for using array maker (and many other stuff)