# CTakeDamageInfo:SetInflictor

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

```lua
CTakeDamageInfo:SetInflictor( Entity inflictor )
```

## Açıklama

Hasara sebep olan nesneyi (inflictor) ayarlar. Örneğin, bir silah.

Hitscan/mermi türü silahlar için bu, silahın kendisi olmalıdır.

Projehtil (roketatar, el bombası vb.) silahlar için bu, projehtilin kendisi olmalı ve [CTakeDamageInfo:SetWeapon](https://gmod.tr/wiki/CTakeDamageInfo:SetWeapon) ile de silah belirtilmelidir.

## Argümanlar

1. [Entity](https://gmod.tr/wiki/Entity) **inflictor**: Hasara sebep olacak yeni nesne.

- [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/CTakeDamageInfo:SetInflictor
