NPC chase the nearest player
#6

Quote:
Originally Posted by matje
Посмотреть сообщение
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.
Could you post the related code? Otherwise we have to guess what could be the cause
Reply


Messages In This Thread
NPC chase the nearest player - by matje - 21.09.2018, 12:14
Re: NPC chase the nearest player - by CodeStyle175 - 21.09.2018, 13:01
Re: NPC chase the nearest player - by Ritzy2K - 21.09.2018, 13:02
Re: NPC chase the nearest player - by ZiGGi - 21.09.2018, 13:41
Re: NPC chase the nearest player - by matje - 21.09.2018, 14:01
Re: NPC chase the nearest player - by NaS - 21.09.2018, 14:14
Re: NPC chase the nearest player - by matje - 21.09.2018, 14:21
Re: NPC chase the nearest player - by NaS - 21.09.2018, 14:41
Re: NPC chase the nearest player - by matje - 21.09.2018, 14:55

Forum Jump:


Users browsing this thread: 1 Guest(s)