# NPC:PlaySentence

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

```lua
number NPC:PlaySentence( string sentence, number delay, number volume )
```

## Açıklama

NPC'yi scripts/sentences.txt dosyasından bir cümle oynatmaya zorlar.

## Argümanlar

1. [string](https://gmod.tr/wiki/string) **sentence**: Söylenecek cümlenin metni.
2. [number](https://gmod.tr/wiki/number) **delay**: Cümlenin oynatılmaya başlamasına kadar saniye cinsinden gecikme.
3. [number](https://gmod.tr/wiki/number) **volume**: Cümlenin ses seviyesi, 0 ile 1 arasında.

## Döndürülenler

1. [number](https://gmod.tr/wiki/number): Cümlenin indeksini döndürür, cümle oynatılamadıysa -1 döndürür.

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