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.
Answer by ChristianSimon · Jun 26, 2018 at 10:46 AM
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.
Your answer
Follow this Question
Related Questions
Unity Photon Handle Match Data 0 Answers
[SOLVED] PhotonNetwork.Instantiate cannot spawn players 0 Answers
Networking - Spawning gameobjects with tags 0 Answers
Photon ccu question 0 Answers