Garry's Mod Wiki

NPC:GetNearestSquadMember

  NPC NPC:GetNearestSquadMember()

Description

Returns the nearest member of the squad the NPC is in.

Returns

1 NPC nearest_member
The nearest member of the squad the NPC is in.