SWEP.FireAnimationEvent

From GMod Wiki

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