Garry's Mod Wiki
Description
Gets the orientation and position of the attachment by its ID, returns nothing if the attachment does not exist.
The update rate of this function is limited by the setting of ENT.AutomaticFrameAdvance for Scripted Entities!
Arguments
Returns
1 table
The angle and position of the attachment. See the AngPos structure. Most notably, the table contains the keys
Ang
and Pos
as well as Bone
.Example
Grabs the muzzle position of a player's view model.
Example
Draws a green cube at the player's view model muzzle if the model has a "muzzle" attachment. This properly translates the attachment into the view model projection space.
This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.
Page content is automatically updated twice a day. Edits and history are not available.
Last Parsed: Loading...