Garry's Mod Wiki

NPC:SelectWeapon

  NPC:SelectWeapon( string class )

Description

Forces the NPC to switch to a specific weapon the NPC owns. See NPC:GetWeapons.

Arguments

1 string class
A classname of the weapon or a Weapon entity to switch to.