# Entity:GetParentAttachment

- **Ortam:** İstemci, Sunucu
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/Entity:GetParentAttachment
- **Çeviri tarihi:** 2025-09-08

```lua
number Entity:GetParentAttachment()
```

## Açıklama

Varlığın ebeveyninin attachment/kemik indeksini döndürür. Eğer varlık bir attachment/kemiğe ebeveynlenmemişse veya hiç ebeveynlenmemişse 0 döndürür.

Bu, [Entity:SetParent](https://gmod.tr/wiki/Entity:SetParent) fonksiyonunun ikinci argümanı veya **SetParentAttachment** girdisi ile ayarlanır.

## Döndürülen Değer

1. [number](https://gmod.tr/wiki/number): Ebeveynlenmiş attachment/kemik indeksi > **NOT:** Eğer varlık üzerinde **EF_FOLLOWBONE** efekti aktifse, attachment indeksi yerine kemik indeksini döndürür. Bakınız: [Entity:IsEffectActive](https://gmod.tr/wiki/Entity:IsEffectActive).

- [GMod Wiki ana sayfası](https://gmod.tr/wiki)

---

[Tüm sunucular](https://gmod.tr/) · [GmodTR Launcher](https://gmod.tr/launcher) · [Rehber](https://gmod.tr/rehber) · [GMod Wiki](https://gmod.tr/wiki) · [GmodTR nedir?](https://gmod.tr/hakkinda) · [Sunucu ekle](https://gmod.tr/sunucu-ekle) · [Discord](https://discord.gg/gmodtr)

Kaynak: https://gmod.tr/wiki/Entity:GetParentAttachment
