Garry's Mod Wiki

Entity:Weapon_SetActivity

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.

Special Pages


Wikis

?

Render Time: 22ms

DB GetPage 2
Generate Html 4
SaveChanges (1) 6
Render Body 0
Render Sidebar 7