ENTITY:HandleAnimEvent
boolean ENTITY:HandleAnimEvent( number event, number eventTime, number cycle, number type, string options )
Description
Called before firing serverside animation events, such as weapon reload, drawing and holstering for NPCs, scripted sequences, etc.
See ENTITY:FireAnimationEvent for the clientside version.
This hook only works on "anim", "ai" and "nextbot" type entities.
Arguments
1 number event
The ID of the event. See this page for a list of default events, and see util.GetAnimEventNameByID for a helper function in handing custom events.
Returns
Example
Handle a custom animation event.
The .qc of the model would look something like this: