SWEP.Deploy

From GMod Wiki

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