SWEP.OnDrop
From GMod Wiki
Revision as of 02:13, 23 October 2009 by Crazy Quebecer (Talk | contribs)
Event Hook | |
Hook Name | OnDrop |
Syntax | SWEP:OnDrop( ) |
Description | Called when the weapon has been dropped. |
Returns | Nil |
Lua State | |
BBCode | [b][url=wiki.garrysmod.com/?title=SWEP.OnDrop]SWEP.OnDrop [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
Description | Prints the message "I like to drop stuff!" to the console whenever the weapon is dropped. |
---|---|
Used on | |
Code | function SWEP:OnDrop() Msg("I like to drop stuff!") end |
Output | "I like to drop stuff!" |