Garry's Mod Wiki

util.GetActivityNameByID

  string util.GetActivityNameByID( number id )

Description

Returns a name for given activity ID. This is useful for models that define custom animation events.

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

Arguments

1 number id
The ID of an activity from some hook. See also ACT enum.

Returns

1 string
The associated name with given activity ID.