Garry's Mod Wiki

NPC:GetMaxLookDistance

  number NPC:GetMaxLookDistance()

Description

Returns NPCs max view distance. An NPC will not be able to see enemies outside of this distance.

Returns

1 number dist
The maximum distance the NPC can see at.