How to make an enemy who will walk behind all players if they go into the radius? Finding by the tag Player. [PUN].

How to make an enemy who will walk behind all players if they go into the radius? Finding by the tag Player. [PUN]. Help please write this script. Just really needed. Already a year somewhere I can not find how to do it. I will be very grateful. Thanks in advance.

Hi,

the best approach might be to add a trigger zone around the enemy and wait for the OnTriggerEnter call. Whenever this one gets called, you will also know which other object (player) entered the trigger zone. With this information the enemy can basically follow a certain object, until this objects exits the trigger zone again.