Garry's Mod Wiki

util.GetAnimEventNameByID

  string util.GetAnimEventNameByID( number id )

Recently Added

This was recently added in version (2024.01.26). It might only be available on the Dev Branch right now.

Description

Returns a name for given automatically generated numerical animation event ID. This is useful for NPC models that define custom animation events.

Arguments

1 number id
The ID of an animation event, typically from ENTITY:HandleAnimEvent.

Returns

1 string
The associated name with given event ID.