Garry's Mod Wiki


  boolean ENTITY:FireAnimationEvent( Vector pos, Angle ang, number event, string name )


Called before firing clientside animation events, such as muzzle flashes or shell ejections.

See ENTITY:HandleAnimEvent for the serverside version.

This hook only works on "anim", "nextbot" and "ai" type entities.


1 Vector pos
Position of the effect
2 Angle ang
Angle of the effect
3 number event
The event ID of happened even. See this page.
4 string name
Name of the event


1 boolean
Return true to disable the effect