Garry's Mod Wiki

Entity:Weapon_TranslateActivity

  number Entity:Weapon_TranslateActivity( number act )

Description

Calls and returns WEAPON:TranslateActivity on the weapon the entity (player or NPC) carries.

Doesn't return anything on client, despite existing there.

Arguments

1 number act
The NPC activity to translate

Returns

1 number
The translated activity. Defaults to act input when a translation doesn't exist.