# Tool:UpdateGhostEntity

- **Ortam:** İstemci, Sunucu
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/Tool:UpdateGhostEntity
- **Çeviri tarihi:** 2025-09-08

```lua
Tool:UpdateGhostEntity()
```

## Açıklama

Hayalet objenin (ghost entity) pozisyonunu ve yönünü, toolgun sahibinin baktığı yere ve [Tool:SetObject](https://gmod.tr/wiki/Tool:SetObject) ile ayarlanan 1 ID'li nesneden gelen verilere göre günceller.

Bu, aracın [TOOL:Think](https://gmod.tr/wiki/TOOL:Think) hook'u içerisinde çağrılmalıdır.

Bu komut yalnızca easy weld, axis ve motor gibi prop'ları hareket ettiren araçlar için kullanılır. Eğer, örneğin itici (thruster) aracının yaptığı gibi bir hayaleti güncellemek istiyorsanız, onun [kaynak kodunu](https://github.com/Facepunch/garrysmod/blob/master/garrysmod/gamemodes/sandbox/entities/weapons/gmod_tool/stools/thruster.lua#L179) kontrol edin.

- [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/Tool:UpdateGhostEntity
