Can somebody help me put together a little bit of code that on primary fire, SWEP does it’s firing animation? My SWEP shoots fine, but I can’t get the firing animation to work. This is where it would GO…I believe, could somebody help me add the animations code? I may have used the wrong animation, since I originally had the model set to shotgun, and changed it to pistol…
function SWEP:PrimaryAttack()
self.Weapon:EmitSound("sounds/FOLDER/MYSWEP/MYSWEPShoot.wav")
self.Weapon:SetNextPrimaryFire(CurTime() + 0.2)
self.Weapon:SendWeaponAnim(ACT_VM_MISSCENTER)