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 models that define custom animation events.

See util.GetAnimEventIDByName for a function that does the opposite.

This function will be shared in the next update.

Arguments

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

Returns

1 string
The associated name with given event ID.