View Single Post
Old 21/09/2018, 02:01 PM   #5
Little Clucker
Join Date: Sep 2016
Posts: 31
Reputation: 5
Default Re: NPC chase the nearest player

Thanks everyone, with your help I got the NPC to recognize the closest player and chase him.
Now the issue is that the NPC's target doesn't change. They will always chase the one initial player even though other players are closer to them. I've used timer to update the closest player every half second, but the NPC does not change the target.
matje is offline   Reply With Quote