Garry's Mod Wiki

WEAPON:TranslateActivity

  number WEAPON:TranslateActivity( number act )

Description

Translate a generic activity into a more specific activity, such as holdtype-specific activities.

The translated activity is then used to request animations from the owner's model via Entity:SelectWeightedSequence and similar functions.

For example, ACT_MP_RUN becomes ACT_HL2MP_RUN_PISTOL.

Arguments

1 number with ACT enum act
The activity to translate

Returns

1 number with ACT enum act
The translated activity