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 Enums/ACT.
2 number duration
How long the animation should take in seconds.

Page Links


Special Pages


Wikis

?

Render Time: 34ms

Session 0
DB GetPage 2
Generate Html 6
SaveChanges 8
Render Body 0
Render Sidebar 15