Garry's Mod Wiki

Revision Difference

util.GetAnimEventIDByName#562766

<function name="GetAnimEventNameByID" parent="util" type="libraryfunc"> <function name="GetAnimEventIDByName" parent="util" type="libraryfunc"> <description>Returns the ID of a custom model animation event. This is useful for models that define custom animation events. See <page>util.GetAnimEventNameByID</page> for a function that does the opposite. </description> <realm>Shared</realm> <added>2024.04.24</added> <args> <arg name="" type="string">The name of an model animation event, as defined in the model's `.qc` at compile time.</arg> </args> <rets> <ret name="id" type="number">The ID of an animation event, typically for usage with <page>ENTITY:HandleAnimEvent</page>.</ret> </rets> </function>