How do I get the attachment ID for the view model of a SWEP?

I tried
“self.Weapon:LookupAttachment( “muzzle” )”
but that spawned my stuff at the world muzzle, not the view muzzle (looks terrible from 1st person)


Try that.

It’s still not working. :S

I’m using: ParticleEffectAttach( self.Primary.MuzzleLong, PATTACH_POINT_FOLLOW, self.Weapon, self.Owner:GetViewModel():LookupAttachment(“muzzle”) )

Is it still spawning your “stuff” at the world muzzle attachment?



I got it in the end.
Turns out i had to set the entity to the view model as well.