Garry's Mod Wiki

Revision Difference

ContentIcon:GetNPCWeapon#561230

<function name="GetNPCWeapon" parent="ContentIcon" type="panelfunc"> <description>Returns 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.</description> <description>An <page>Global.AccessorFunc</page> that returns 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.</description> <realm>Client</realm> <file line="16">gamemodes/sandbox/gamemode/spawnmenu/creationmenu/content/contenticon.lua</file>⤶ <rets> <ret name="" type="table">A table of weapon classes to be chosen from when user tries to spawn the NPC.</ret> </rets> </function>