Entity/Weapon_SetActivity

From Garry's Mod
Jump to: navigation, search
 Entity:Weapon_SetActivity( )

Description

Sets the activity of the entity's active weapon.

NOTE

This does nothing on the client.

NOTE

Only works for CBaseCombatCharacter entities, which includes players and NPCs.

Arguments

number act

Activity number. See ACT_ Enums.

Arguments

number duration

How long the animation should take in seconds.
Personal tools
Navigation