# ENTITY:RunAI

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

```lua
boolean ENTITY:RunAI()
```

## Açıklama

Motor tarafından her [m_flNextDecisionTime](https://github.com/ValveSoftware/source-sdk-2013/blob/master/src/game/server/ai_basenpc.cpp#L3943C10-L3943C30) saniyede bir çağrılır. Bu aralık, NPC'nin [Efficiency](https://github.com/ValveSoftware/source-sdk-2013/blob/master/src/game/server/ai_basenpc.cpp#L3093) değerine bağlı olarak değişir. Bu hook içinde `true` döndürmek, [CAI_BaseNPC::MaintainSchedule](https://github.com/ValveSoftware/source-sdk-2013/blob/master/src/game/server/ai_basenpc_schedule.cpp#L562) fonksiyonunun da çağrılmasına izin verecektir.

> **NOT:** Bu hook yalnızca `ai` türündeki SENT'ler için mevcuttur.

## Dönüş Değeri

1. [boolean](https://gmod.tr/wiki/boolean): `true` motor programlarını çalıştırmak için

- [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/ENTITY:RunAI
