Garry's Mod Wiki

ContentIcon:SetNPCWeapon

  ContentIcon:SetNPCWeapon( table weapons )

Description

An AccessorFunc that sets a table of weapon classes for the content icon with "NPC" content type to be randomly chosen from when user tries to spawn the NPC.

Arguments

1 table weapons
A table of weapon classes to be chosen from when user tries to spawn the NPC.