# ai

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

Yapay zeka (ai) kütüphanesi.

## Metotlar

[number](https://gmod.tr/wiki/number) ai.[GetNodeCount](https://gmod.tr/wiki/ai.GetNodeCount)()

Haritadaki, temel oyun NPC'leri tarafından kullanılan yapay zeka (AI) düğümlerinin sayısını döndürür. Nextbot'lar için navmesh'e bakın.

[number](https://gmod.tr/wiki/number) ai.[GetScheduleID](https://gmod.tr/wiki/ai.GetScheduleID)( [string](https://gmod.tr/wiki/string) sched )

Bir zamanlama (schedule) adını, ona karşılık gelen ID'ye çevirir.

[NPC](https://gmod.tr/wiki/NPC) ai.[GetSquadLeader](https://gmod.tr/wiki/ai.GetSquadLeader)( [string](https://gmod.tr/wiki/string) squad )

Belirtilen takımın (squad) liderini döndürür.

[number](https://gmod.tr/wiki/number) ai.[GetSquadMemberCount](https://gmod.tr/wiki/ai.GetSquadMemberCount)( [string](https://gmod.tr/wiki/string) squad )

Belirtilen bir takımın (squad) sahip olduğu üye sayısını döndürür. Ayrıca bakınız: ai.GetSquadMembers.

[table](https://gmod.tr/wiki/table) ai.[GetSquadMembers](https://gmod.tr/wiki/ai.GetSquadMembers)( [string](https://gmod.tr/wiki/string) squad )

Belirtilen bir takımın (squad) tüm üyelerini döndürür. Ayrıca bakınız: ai.GetSquadMemberCount ve NPC:GetSquad.

[number](https://gmod.tr/wiki/number) ai.[GetTaskID](https://gmod.tr/wiki/ai.GetTaskID)( [string](https://gmod.tr/wiki/string) task )

Bir görev (task) adını, ona karşılık gelen ID'ye çevirir.

- [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/ai
