Entity.LookupAttachment
From GMod Wiki
Function | |
Syntax | Entity:LookupAttachment( String attachmentName ) |
Description: | |
Converts an attachment name to an attachment ID. If 0 is returned, an attachment by the given name couldn't be found on this entity's model. | |
Returns: | Integer |
In Object: | Entity |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.LookupAttachment]Entity.LookupAttachment [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- You can find a list of attachments for a model with Source SDK's model viewer, under the "attachments" tab.
- Common generic attachments: eyes, mouth, chest, forward, anim_attachment_RH, anim_attachment_LH.
- The head attachment for ragdolls and players is "eyes".
- The gun attachment on a jeep is "gun_ref".
- The muzzle attachment for weapons is "muzzle".