Garry's Mod Wiki

util.GetAnimEventNameByID

  string util.GetAnimEventNameByID( number id )

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.

Arguments

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

Returns

1 string
The associated name with given event ID.