Player.DropNamedWeapon

From GMod Wiki

Revision as of 21:54, 17 September 2009 by Unrealomega (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax Player:DropNamedWeapon( String weapon_class )
Description:
Forces a player to drop a specific weapon.
Returns: nil
In Object: Player
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.DropNamedWeapon]Player.DropNamedWeapon [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionDrop the phys gun
Used onNewerServer.png
Code
function DropPhysGun(ply)
 
          ply:DropNamedWeapon("weapon_physgun")
 
end
concommand.Add("dropphys", DropPhysGun)
 
OutputN/A


Additional notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox