# scripted\_ents.IsBasedOn

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

```lua
boolean scripted_ents.IsBasedOn( string name, string base )
```

## Açıklama

Belirtilen sınıf adının, temel sınıftan türetilip türetilmediğini kontrol eder.

## Argümanlar

1. [string](https://gmod.tr/wiki/string) **name**: Kontrol edilecek varlığın sınıf adı
2. [string](https://gmod.tr/wiki/string) **base**: Kontrol edilecek temel sınıf adı

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

1. [boolean](https://gmod.tr/wiki/boolean): Eğer sınıf adı temel sınıftan türetilmişse true, aksi halde false döndürür.

### Örnek

gmod_hands'in base_anim'den türetilip türetilmediğine bakar.

```lua
print(scripted_ents.IsBasedOn("gmod_hands", "base_anim"))
```

**Çıktı:** true

- [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/scripted_ents.IsBasedOn
