Garry's Mod Wiki


The ai library.


number ai.GetScheduleID( string sched )
Translates a schedule name to its corresponding ID.
NPC ai.GetSquadLeader( string squad )
Returns the squad leader of the given squad.
number ai.GetSquadMemberCount( string squad )
Returns the amount of members a given squad has.
table ai.GetSquadMembers( string squad )
Returns all members of a given squad.
number ai.GetTaskID( string task )
Translates a task name to its corresponding ID.