Garry's Mod Wiki

ai.GetNodeCount

  number ai.GetNodeCount()

Recently Added

This was recently added in version (2025.07.03). It might only be available on the Dev Branch right now.

Description

Returns the number of AI nodes on the map, used by the base game NPCs.

For nextbots, see navmesh.

Returns

1 number
The node count.