# Entity:DispatchTraceAttack

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

```lua
Entity:DispatchTraceAttack( CTakeDamageInfo damageInfo, table traceRes, Vector dir = traceRes.HitNormal )
```

## Açıklama

Bu fonksiyonun çağrıldığı entity'e doğru, sanki görünmez bir mermi ateşlenmiş gibi bir izleme saldırısı gerçekleştirir. Görsel olarak [Entity:TakeDamageInfo](https://gmod.tr/wiki/Entity:TakeDamageInfo) ile aynıdır.

> **UYARI:** Bu fonksiyonu [ENTITY:OnTakeDamage](https://gmod.tr/wiki/ENTITY:OnTakeDamage) içerisinde kurban entity üzerinde çağırmak sonsuz döngülere neden olabilir.

> **NOT:** Bu fonksiyon, [Entity:TakeDamageInfo](https://gmod.tr/wiki/Entity:TakeDamageInfo)'nun aksine, [func_breakable_surf](https://developer.valvesoftware.com/wiki/Func_breakable_surf) entity'lerine hasarı doğru bir şekilde uygular.

## Argümanlar

1. [CTakeDamageInfo](https://gmod.tr/wiki/CTakeDamageInfo) **damageInfo**: Uygulanacak hasar.
2. [table](https://gmod.tr/wiki/table) **traceRes**: Hasar vermek için kullanılacak izleme sonucu. Bakınız: [TraceResult yapısı](https://gmod.tr/wiki/Structures/TraceResult)
3. [Vector](https://gmod.tr/wiki/Vector) **dir** = traceRes.HitNormal: Saldırının yönü.

- [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:DispatchTraceAttack
