# NPC:UseFollowBehavior

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

```lua
boolean NPC:UseFollowBehavior()
```

## Açıklama

> **NOT:** Bu fonksiyon yalnızca `ai` türündeki SENT'ler üzerinde çalışır.

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

1. [boolean](https://gmod.tr/wiki/boolean): Davranışı ayarlamada başarılı olup olmadığımız.

### Örnek

Konsol komutları ve Lua kullanarak oyuncuyu takip eden bir `base_ai` oluşturun.

```lua
ent_create base_ai targetname alyx additionalequipment weapon_ar2
ent_create ai_goal_follow goal !player formation 0 actor alyx searchtype 0 startactive 1
-- Bir saniye sonra aşağıdaki Lua kodunu çalıştırın:
lua_run ents.FindByName("alyx")[1]:UseFollowBehavior()
```

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