Entity:GetPos

  Vector Entity:GetPos()

Açıklama

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

Entity'nin Entity:GetParent'ına göreceli pozisyonu için Entity:GetLocalPos sayfasına bakın.

Döndürülen Değer

1 Vector
Entity'nin pozisyonu.

Örnek

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

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 )

Tüm sunucular · GmodTR Launcher · Rehber · GMod Wiki · GmodTR nedir? · Sunucu ekle · Discord