Revision Difference
ENTITY:HandleAnimEvent#518503
<function name="HandleAnimEvent" parent="ENTITY" type="hook">
<ishook>yes</ishook>
<description>
Called before firing serverside animation events, such as weapon reload, drawing and holstering for NPCs, scripted sequences, etc.
See <page>ENTITY:FireAnimationEvent</page> for the clientside version.
<note>This hook only works on "anim", "ai" and "nextbot" type entities.</note>
</description>
<realm>Server</realm>
<predicted>No</predicted>
<args>
<arg name="event" type="number">The event ID of happened even. See [this page](http://developer.valvesoftware.com/wiki/Animation_Events).</arg>
<arg name="eventTime" type="number">The absolute time this event occurred using <page>Global.CurTime</page>.</arg>
<arg name="eventTime" type="number">The absolute time this event occurred using <page>Global.CurTime</page>.</arg>
<arg name="cycle" type="number">The frame this event occurred as a number between 0 and 1.</arg>
<arg name="type" type="number">Event type. See [the Source SDK](https://github.com/ValveSoftware/source-sdk-2013/blob/master/mp/src/game/shared/eventlist.h#L14-L23).</arg>
<arg name="options" type="string">Name or options of this event.</arg>
</args>
</function>