Player.DropWeapon
From GMod Wiki
Function | |
Syntax | Player:DropWeapon( Entity Ent ) |
Description: | |
Forces a player to drop a specific weapon. | |
Returns: | nil |
In Object: | Player |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Player.DropWeapon]Player.DropWeapon [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional notes
- This uses a dropped weapon base class for hl2, walking over this will pick it up.
- When used on the crowbar, the crowbar does not get dropped, it simply disappears from your inventory.