Entity/GetParentAttachment

From Garry's Mod
Jump to: navigation, search
 Entity:GetParentAttachment( )

Description

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

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

Returns

number

The parented attachment index
Personal tools
Navigation