Garry's Mod Wiki

Revision Difference

NPC:SelectWeapon#527853

<function name="SelectWeapon" parent="NPC" type="classfunc"> <description>Forces the NPC to switch to a specific weapon the NPC owns. See <page>NPC:GetWeapons</page></description>⤶ <description>Forces the NPC to switch to a specific weapon the NPC owns. See <page>NPC:GetWeapons</page>.</description>⤶ <realm>Server</realm> <added>2020.06.24</added>⤶ <args> <arg name="class" type="string">A classname of the weapon or a <page>Weapon</page> entity to switch to.</arg> </args> </function>