Garry's Mod Wiki

ENTITY:FireAnimationEvent

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

Description

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.

Arguments

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

Returns

1 boolean
Return true to disable the effect