Garry's Mod Wiki

NPC:GetMaxLookDistance

  number NPC:GetMaxLookDistance()

Just Added

This was just added in the latest version (2023.01.25). It might only be available on the Dev Branch right now.

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.