# NPC:GetAimVector

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

```lua
Vector NPC:GetAimVector()
```

## Açıklama

NPC'nin nişan alma vektörünü döndürür. [Player:GetAimVector](https://gmod.tr/wiki/Player:GetAimVector)'ın NPC alternatifidir.

> **NOT:** Eğer NPC'nin hem bir [NPC:GetEnemy](https://gmod.tr/wiki/NPC:GetEnemy)'si hem de bir [NPC:GetActiveWeapon](https://gmod.tr/wiki/NPC:GetActiveWeapon)'ı varsa, oyun motoru dönüş değerine rastgele bir yayılma derecesi eklemek için otomatik olarak [ENTITY:GetAttackSpread](https://gmod.tr/wiki/ENTITY:GetAttackSpread)'i çağıracaktır.

## Döndürülenler

1. [Vector](https://gmod.tr/wiki/Vector): NPC'nin nişan aldığı yön, genellikle [NPC:GetEnemy](https://gmod.tr/wiki/NPC:GetEnemy)'sine doğru parazitli bir yöndür. Düşmanı olmadığında bu varsayılan olarak [Entity:GetForward](https://gmod.tr/wiki/Entity:GetForward) olacaktır. Bu durumda, [NPC:GetCurrentWeaponProficiency](https://gmod.tr/wiki/NPC:GetCurrentWeaponProficiency) kullanılacaktı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:GetAimVector
