# NPC:NavSetGoalTarget

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

```lua
boolean NPC:NavSetGoalTarget( Entity target, Vector offset = Vector( 0, 0, 0 ) )
```

## Açıklama

Bir NPC için hedefi belirler.

Bu, mevcut zamanlama ve görev için ya [NPC:TaskComplete](https://gmod.tr/wiki/NPC:TaskComplete) ya da [NPC:TaskFail](https://gmod.tr/wiki/NPC.TaskFail) fonksiyonunu çağırır, bu da mevcut görevi bir sonraki göreve geçmeye veya başarısız olmaya zorlar.

## Argümanlar

1. [Entity](https://gmod.tr/wiki/Entity) **target**: Hedef olarak ayarlanacak varlık.
2. [Vector](https://gmod.tr/wiki/Vector) **offset** = Vector( 0, 0, 0 ): Hedeflenen varlığın pozisyonuna uygulanacak öteleme.

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

1. [boolean](https://gmod.tr/wiki/boolean): Yol oluşturmanın başarılı olup olmadığı

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