Garry's Mod Wiki

NPC:GetWeapon

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.

Page Links


Special Pages


Wikis

?

Render Time: 35ms

DB GetPage 4
Generate Html 3
SaveChanges (1) 9
Render Body 0
Render Sidebar 17