SWEP.Deploy

From GMod Wiki

Revision as of 18:17, 7 June 2010 by Crazy Quebecer (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Event Hook
Hook NameDeploy
SyntaxSWEP:Deploy( )
DescriptionCalled when you bring out the SWEP.
ReturnsBoolean
Lua StateNewerShared.png
BBCode[b][url=wiki.garrysmod.com/?title=SWEP.Deploy]SWEP.Deploy [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]

Example

DescriptionSets the weapon animation to draw once you bring it out.
Used onNewerShared.png
Code
function SWEP:Deploy()
	self:SendWeaponAnim(ACT_VM_DRAW)
      return true
end
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox