Garry's Mod Wiki

util.GetActivityIDByName

  number util.GetActivityIDByName( string )

Description

Returns the ID of a custom model activity. This is useful for models that define custom ones.

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

Arguments

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

Returns

1 number id
The ID of the activity. See also ACT enum.