View Single Post
Author Message
DavidJr
Senior Member
Join Date: Apr 2012
Old 06-12-2016 , 06:27   NPC View Distance
Reply With Quote #1

Hello, I'm working on zombie npc, which I don't really know what this is called. I'll use image illustration.

Black circle: NPC (info_target entity)
Blue circle: Players
Red border: The view distance of the NPC

Question is how to detect players only inside the view distance? My current code just detects the nearby players around the npc. I want to make the NPC chases (I already knew how to make the NPC moves) the player who is in it's view distance.

Thank you before.
__________________
What are you looking for here?

Last edited by DavidJr; 06-12-2016 at 06:28.
DavidJr is offline