• Finding barrel position of a gun.
    2 replies, posted
I am trying to make a weapon that creates a visual effect that start at the barrel position of the gun. The only trouble is that I have no idea how to find the barrel position of a weapon. I tried using weapon:GetViewModelPosition(), but apparently SWEP doesn't count as a weapon. Can anyone halp?
Use this: [url]http://wiki.garrysmod.com/page/Entity/GetAttachment[/url] to look up the 'muzzle'.
[QUOTE=smithy285;47608611]Use this: [url]http://wiki.garrysmod.com/page/Entity/GetAttachment[/url] to look up the 'muzzle'.[/QUOTE] Don't look for "muzzle", look for attachment ID 1
Sorry, you need to Log In to post a reply to this thread.