Garry's Mod Wiki

util.GetAnimEventIDByName

  number util.GetAnimEventIDByName( string )

Description

Returns the ID of a custom model animation event. This is useful for models that define custom animation events.

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

Arguments

1 string
The name of an model animation event, as defined in the model's .qc at compile time.

Returns

1 number id
The ID of an animation event, typically for usage with ENTITY:HandleAnimEvent.