Return to Main Docs Page

SendWeaponAnim

NewerServer.png Forces weapon to play activity/animation.

Weapon:SendWeaponAnim( number act )
               

Arguments:


  • 1) number act
  • Activity to play. See the Activity Enums (specifically ACT_VM_).

Example:



function SWEP:PrimaryAttack()
   self:SendWeaponAnim( ACT_VM_PRIMARYATTACK ) --Does the primary attack animation. 
end