# ENTITY:OverrideMoveFacing

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

```lua
boolean ENTITY:OverrideMoveFacing( number interval, table AILMG )
```

## Açıklama

NPC'nin navigasyon sırasında bakacağı yönü tamamen geçersiz kılmak için çağrılır.

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

> **NOT:** Bu hook, varsayılan hareket hook'u tarafından çağrılır. [ENTITY:OverrideMove](https://gmod.tr/wiki/ENTITY:OverrideMove) içinde `true` döndürmek, oyun motorunun bu hook'u çağırmasını engeller.

## Argümanlar

1. [number](https://gmod.tr/wiki/number) **interval**: Hareket için zaman aralığı, saniye cinsinden. Genellikle son hareketten bu yana geçen süredir.
2. [table](https://gmod.tr/wiki/table) **AILMG**: Hareket için ek veriler. Aşağıdaki verileri içeren bir tablo: - [boolean](https://gmod.tr/wiki/boolean) hasTraced - Öne doğru bir probing trace yapılıp yapılmadığının sonucu - [number](https://gmod.tr/wiki/number) expectedDist = `speed*interval` - Bu think'te hareket edilmesi beklenen mesafe - [number](https://gmod.tr/wiki/number) flags - [AILMG bayrakları](https://github.com/ValveSoftware/source-sdk-2013/blob/master/src/game/server/ai_movetypes.h#L113) - [number](https://gmod.tr/wiki/number) maxDist = [NPC:GetPathDistanceToGoal](https://gmod.tr/wiki/NPC:GetPathDistanceToGoal) - Yol uzunluğunda kat edilmesi hedeflenen maksimum mesafe - [number](https://gmod.tr/wiki/number) navType - [NAV enum](https://gmod.tr/wiki/Enums/NAV) - [number](https://gmod.tr/wiki/number) speed - [Entity:GetSequenceGroundSpeed](https://gmod.tr/wiki/Entity:GetSequenceGroundSpeed) Not: bunun `target` ile her zaman uyuşması gerekmez - [Entity](https://gmod.tr/wiki/Entity) moveTarget = `m_hGoalEnt` - Hedef olarak belirlenen entity. - [Vector](https://gmod.tr/wiki/Vector) dir - Adım yönü, `target`'a doğru - [Vector](https://gmod.tr/wiki/Vector) facing - NPC'nin vücudunun hareket sırasında döneceği yön. - [Vector](https://gmod.tr/wiki/Vector) target = [NPC:GetCurWaypointPos](https://gmod.tr/wiki/NPC:GetCurWaypointPos) - Dünya koordinatlarındaki mevcut ara nokta (waypoint).

## Döndürülenler

1. [boolean](https://gmod.tr/wiki/boolean): Varsayılan hareket yönelme kodunu devre dışı bırakmak için `true` döndürün.

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