SWEP.Equip
From GMod Wiki
Revision as of 02:05, 23 October 2009 by Crazy Quebecer (Talk | contribs)
Event Hook | |
Hook Name | Equip |
Syntax | SWEP:Equip( Player NewOwner ) |
Description | Called when the weapon has been acquired. |
Returns | Nil |
Lua State | |
BBCode | [b][url=wiki.garrysmod.com/?title=SWEP.Equip]SWEP.Equip [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
Description | Kills anyone who picks up the SWEP. |
---|---|
Used on | |
Code | function SWEP:Equip( NewOwner ) NewOwner:Kill() end |
Output | N/A |