SWEP.OnRemove

From GMod Wiki

Revision as of 20:23, 23 October 2009 by Crazy Quebecer (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Event Hook
Hook NameOnRemove
SyntaxSWEP:OnRemove( )
DescriptionCalled right before the weapon is removed.
ReturnsNil
Lua StateNewerShared.png
BBCode[b][url=wiki.garrysmod.com/?title=SWEP.OnRemove]SWEP.OnRemove [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]

Examples

DescriptionPrints a message when removed.
Used onNewerShared.png
Code
function SWEP:OnRemove()
	print("If I am no more, then what am I?")
end
OutputN/A
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox