From Garry's Mod
Revision as of 17:16, 15 May 2016 by NeatNit
Gets the orientation and position of the attachment by its ID.
The internal ID of the attachment.
The angle and position of the attachment. See the AngPos structure. Most notably, the table contains the keys "Ang" and "Pos".
Grabs the muzzle position of a player's view model
local vm = ply:GetViewModel() local obj = vm:LookupAttachment( "muzzle" ) local muzzlepos = vm:GetAttachment( obj )