SWEP.FireAnimationEvent
From GMod Wiki
Revision as of 18:10, 7 February 2011 by [TNS-M] Wintows (Talk | contribs)
Event Hook | |
Hook Name | FireAnimationEvent |
Syntax | SWEP:FireAnimationEvent( Vector Position, Vector Angle, Integer Event ) |
Description | Called before firing animation events, such as muzzle flashes or shell ejections. |
Returns | Boolean Bool |
Lua State | |
BBCode | [b][url=wiki.garrysmod.com/?title=SWEP.FireAnimationEvent]SWEP.FireAnimationEvent [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Disables muzzle flashes. |
---|---|
Used on | |
Code | function SWEP:FireAnimationEvent(pos,ang,event) return (event==5001) end |
Output | Boolean |
Additional Notes
- Returning true disables the event.
- List of events.