# Entity:GetPos

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

```lua
Vector Entity:GetPos()
```

## Açıklama

Belirtilen entity'nin dünyadaki pozisyonunu alır.

Entity'nin [Entity:GetParent](https://gmod.tr/wiki/Entity:GetParent)'ına göreceli pozisyonu için [Entity:GetLocalPos](https://gmod.tr/wiki/Entity:GetLocalPos) sayfasına bakın.

## Döndürülen Değer

1. [Vector](https://gmod.tr/wiki/Vector): Entity'nin pozisyonu.

### Örnek

Baktığınız entity'nin pozisyonunu veren yardımcı bir komut.

```lua
concommand.Add( "entity_pos", function( ply )
	local tr = ply:GetEyeTrace()
	if ( IsValid( tr.Entity ) ) then
		print( "Entity position:", tr.Entity:GetPos() )
	else
		print( "Crosshair position:", tr.HitPos )
	end
end )
```

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