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)


self.Owner:GetViewModel():LookupAttachment("muzzle")

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?

Yeah.

http://dl.dropbox.com/u/516743/lolsmoek.PNG

[editline]10:41PM[/editline]

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