Garry's Mod Wiki

util.GetActivityNameByID

  string util.GetActivityNameByID( 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 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.