SWEP.FireAnimationEvent

From GMod Wiki

Revision as of 18:10, 7 February 2011 by [TNS-M] Wintows (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Event Hook
Hook NameFireAnimationEvent
SyntaxSWEP:FireAnimationEvent( Vector Position, Vector Angle, Integer Event )
DescriptionCalled before firing animation events, such as muzzle flashes or shell ejections.
ReturnsBoolean Bool
Lua StateNewerClient.png
BBCode[b][url=wiki.garrysmod.com/?title=SWEP.FireAnimationEvent]SWEP.FireAnimationEvent [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionDisables muzzle flashes.
Used onNewerShared.png
Code
function SWEP:FireAnimationEvent(pos,ang,event)
return (event==5001)
end
OutputBoolean


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox