Garry's Mod Wiki

Revision Difference

ContentIcon:SetNPCWeapon#553538

<function name="SetNPCWeapon" parent="ContentIcon" type="panelfunc"> <ispanel>yes</ispanel>⤶ <description>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.</description> <realm>Client</realm> <args> <arg name="weapons" type="table">A table of weapon classes to be chosen from when user tries to spawn the NPC.</arg> </args> </function>