# PathFollower:Chase

- **Ortam:** Sunucu
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/PathFollower:Chase
- **Çeviri tarihi:** 2025-09-08

```lua
PathFollower:Chase( NextBot bot, Entity ent, function generator = nil )
```

## Açıklama

Belirtilen entity argümanına giden en kısa yolu hesaplar. PathFollower nesnesi `Chase` tipinde olmalıdır.

`Follow` tipindeki PathFollower nesneleri için [PathFollower:Compute](https://gmod.tr/wiki/PathFollower:Compute) kullanın.

## Argümanlar

1. [NextBot](https://gmod.tr/wiki/NextBot) **bot**: Yol boyunca güncellenecek bot. Bu aynı zamanda bir nextbot oyuncusu da olabilir ([player.CreateNextbot](https://gmod.tr/wiki/player.CreateNextBot)).
2. [Entity](https://gmod.tr/wiki/Entity) **ent**: Kovalamak istediğimiz entity.
3. [function](https://gmod.tr/wiki/function) **generator** = nil: Yol oluşturma işlemini değiştirmenize olanak tanıyan bir fonksiyon. Varsayılan fonksiyon için [PathFollower:Compute](https://gmod.tr/wiki/PathFollower:Compute) sayfasındaki örneğe bakın. Fonksiyon argüman(lar)ı: 1. [CNavArea](https://gmod.tr/wiki/CNavArea) **area** - Gidilecek alan. 2. [CNavArea](https://gmod.tr/wiki/CNavArea) **fromArea** - Gelinecek alan. 3. [CNavLadder](https://gmod.tr/wiki/CNavLadder) **ladder** - Gidilecek veya gelinecek merdiven (Doğrulama gereklidir), eğer varsa. 4. [Entity](https://gmod.tr/wiki/Entity) **elevator** - Muhtemelen her zaman NULL olacaktır. 5. [number](https://gmod.tr/wiki/number) **length** - `area` ve `fromArea` arasındaki önceden hesaplanmış uzunluk. Fonksiyon dönüş değeri/değerleri: 1. [number](https://gmod.tr/wiki/number) **cost** - `area` ve `fromArea` arasındaki hareketin maliyeti.

- [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/PathFollower:Chase
