Hey is there a way to get a list of things that an NPC is currently seeing?
Any ideas? Anyone?
use ents.FindInCone with the cone position being the npc’s head and the cone angle being the npc’s view angle and the cone’s angle being the npc’s fov angle. You’ll need to do additional tracing to make sure the npc is actually seeing the entity and not being blocked by a wall or something.