# CNavArea:SetTotalCost

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

```lua
CNavArea:SetTotalCost( number cost )
```

## Açıklama

Başlangıç alanından hedef alana bu düğüm üzerinden geçerkenki toplam maliyeti ayarlar.

[A* algoritması](https://en.wikipedia.org/wiki/A*_search_algorithm) ile yol bulmada kullanılır.

Daha fazla bilgiye [Basit Yol Bulma (Simple Pathfinding)](https://gmod.tr/wiki/Simple_Pathfinding) sayfasından ulaşılabilir.

## Argümanlar

1. [number](https://gmod.tr/wiki/number) **cost**: Ayarlanacak yolun toplam maliyeti. 0'a eşit veya 0'dan büyük olmalıdır.

- [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/CNavArea:SetTotalCost
