• Finding the position of gun's muzzle from it's weapon entity.
    3 replies, posted
I have the gun's entity, and I need to find it's muzzle position. How do I do that?
[IMG]http://wiki.garrysmod.com/favicon.ico[/IMG] [URL="http://wiki.garrysmod.com/page/Entity/GetAttachment"]Entity:GetAttachment[/URL]
Is the getviewmodel necessary for this one?
Alternatively you can do this [code] ply:GetActiveWeapon():GetAttachment(ply:GetActiveWeapon():LookupAttachment("muzzle")).Pos [/code]
Sorry, you need to Log In to post a reply to this thread.