Garry's Mod Wiki


  NPC:SetSquad( string name = nil )


Assigns the NPC to a new squad. A squad can have up to 16 NPCs. NPCs in a single squad should be friendly to each other.

See also ai.GetSquadMembers and NPC:GetSquad.

NPCs within the same squad are meant to function more effectively, tactics wise.


1 string name = nil
The new squad name to set. Do not provide this argument to reset the squad.