Garry's Mod Wiki

NPC:PickupWeapon

NPC:PickupWeapon

boolean NPC:PickupWeapon( Weapon wep )

Description

Forces the NPC to pickup an existing weapon entity. The NPC will not pick up the weapon if they already own a weapon of given type, or if the NPC could not normally have this weapon in their inventory.

Arguments

1 Weapon wep
The weapon to try to pick up.

Returns

1 boolean result
Whether the NPC succeeded in picking up the weapon or not.

Special Pages


Wikis

?

Render Time: 26ms

DB GetPage 3
Generate Html 3
SaveChanges (1) 11
Render Body 0
Render Sidebar 7