# properties.CanBeTargeted

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

```lua
boolean properties.CanBeTargeted( Entity ent, Player ply )
```

## Açıklama

Belirtilen entity'nin, oyuncu tarafından özellikler (properties) sistemi aracılığıyla hedeflenip hedeflenemeyeceğini kontrol eder ve hedeflenebiliyorsa true döndürür.

Bu, istemci tarafı komut dosyaları (clientside scripting) tarafından kötüye kullanımı önlemek için özelliklerinizde sunucu tarafında (serverside) kullanılmalıdır.

## Argümanlar

1. [Entity](https://gmod.tr/wiki/Entity) **ent**: Test edilecek entity
2. [Player](https://gmod.tr/wiki/Player) **ply**: Eğer belirtilirse, entity'nin Yönlendirilmiş Sınırlayıcı Kutusuna (Orientated Bounding Box) göre bir mesafe kontrolü de yapar.

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

1. [boolean](https://gmod.tr/wiki/boolean): Eğer entity hedeflenebiliyorsa true, aksi takdirde false

- [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/properties.CanBeTargeted
