Garry's Mod Wiki

Garry's Mod Wiki

  number Entity:GetParentAttachment()

Description

Returns the attachment/bone index of the entity's parent. Returns 0 if the entity is not parented to an attachment/bone or if it isn't parented at all.

This is set by second argument of Entity:SetParent or the SetParentAttachment input.

Returns

1 number
The parented attachment/bone index
Will return bone index instead of attachment index if the EF_FOLLOWBONE effect is active on the entity. See Entity:IsEffectActive.

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 four times a day. Edits and history are not available.

Last Parsed: Loading...