Ok i have a problem, Iam new to Sweps and currently trying to get my first weapon to work. But i have a problem with the firing animation.
i wrote this:
function SWEP:PrimaryAttack()
self.Weapon:SetNextPrimaryFire(CurTime()+1)
self.Owner:SetAnimation(PLAYER_ATTACK1)
self:shoot(150,900)
self.Weapon:SendWeaponAnim(ACT_VM_PRIMARYATTACK)
end
The problem is, the Shoot animation is interupted v.v. If i dont use setnextprimaryfire(so it shoots every frame) the animation works. But with setnextprimaryfire, the animation works only for the first bullet.
(little question: is sendweaponanim a network command, so does it send something? or is it only executed on the client for local animation? Yes i know the Shoot animation for the Viewmodel is local but the “send” is irritating o.O)
Can someone Help me?
Greets
Memnarch