Garry's Mod Wiki

ai

The ai library.

Methods

Returns the number of AI nodes on the map, used by the base game NPCs. For nextbots, see navmesh.
Translates a schedule name to its corresponding ID.
Returns the squad leader of the given squad.
Returns the amount of members a given squad has. See also ai. GetSquadMembers.
Returns all members of a given squad. See also ai. GetSquadMemberCount and NPC:GetSquad.
Translates a task name to its corresponding ID.