# NPC:SetIdealYawAndUpdate

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

```lua
NPC:SetIdealYawAndUpdate( number angle, number speed = -1 )
```

## Açıklama

NPC için ideal sapma açısını (sağ-sol dönüş) ayarlar ve onları bu açıya dönmeye zorlar.

## Argümanlar

1. [number](https://gmod.tr/wiki/number) **angle**: Ayarlanacak nişan yönü, `yaw` bileşeni.
2. [number](https://gmod.tr/wiki/number) **speed** = -1: Dönüş hızı. Özel değerler şunlardır: - `-1` - Otomatik olarak hesapla - `-2` - Önceki sapma hızını koru

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