# NPC:HasObstacles

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

```lua
boolean NPC:HasObstacles()
```

## Açıklama

Mevcut navigasyonda bir engel varsa true değerini döndürür. Bu durum, [NPC:GetBlockingEntity](https://gmod.tr/wiki/NPC:GetBlockingEntity) fonksiyonundan farklıdır. Bu fonksiyon, yapay zekanın yerel navigasyon sistemi tarafından, işaretli bir alana hareketi önlemek ve NPC'yi etrafından dolaşmaya zorlamak için yerleştirilen sanal navigasyon engelleriyle ilgilidir, [örneğin](https://github.com/ValveSoftware/source-sdk-2013/blob/master/src/game/server/hl2/npc_playercompanion.cpp#L2897).

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

1. [boolean](https://gmod.tr/wiki/boolean): Mevcut navigasyonda bir engel varsa `true`.

- [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/NPC:HasObstacles
