Garry's Mod Wiki

Entity:GetParentAttachment

Entity:GetParentAttachment

  number 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

1 number
The parented attachment index

Special Pages


Wikis

?

Render Time: 31ms

DB GetPage 3
Generate Html 4
SaveChanges (1) 12
Render Body 0
Render Sidebar 11