Garry's Mod Wiki

Entity:Weapon_SetActivity

  Entity:Weapon_SetActivity( number act, number duration )

Description

Sets the activity of the entity's active weapon.

This does nothing on the client.
Only works for CBaseCombatCharacter entities, which includes players and NPCs.

Arguments

1 number act
Activity number. See ACT enum.
2 number duration
How long the animation should take in seconds.