SWEP.OnDrop
From GMod Wiki
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!" |