Garry's Mod Wiki

Garry's Mod Wiki

  Weapon NPC:GetWeapon( string class )

Description

Returns a specific weapon the NPC owns.

Arguments

1 string class
A classname of the weapon to try to get.

Returns

1 Weapon wep
The weapon for the specified class, or NULL of the NPC doesn't have given weapon.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...