Garry's Mod Wiki

Revision Difference

GM:PlayerHandleAnimEvent#528350

<function name="PlayerHandleAnimEvent " parent="GM" type="hook">⤶ <ishook>yes</ishook>⤶ <description>⤶ Called before firing serverside animation events on the player models.⤶ ⤶ See <page>GM:PlayerFireAnimationEvent</page> for the clientside version.⤶ </description>⤶ <realm>Server</realm>⤶ <added>2020.10.14</added>⤶ <predicted>No</predicted>⤶ <args>⤶ <arg name="ply" type="Player">The player who has triggered the event.</arg>⤶ <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="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>⤶ ⤶