# Entity:SetGroundEntity

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

```lua
Entity:SetGroundEntity( Entity ground )
```

## Açıklama

Varlığın üzerinde durduğu zemini ayarlar.

## Argümanlar

1. [Entity](https://gmod.tr/wiki/Entity) **ground**: Zemin varlığı.

### Örnek

Tüm oyunculara su üzerinde yürüme yeteneği verir (bir nevi).

```lua
-- shared.lua tick
function GM:Tick()

	local trace = {}
	local world = Entity( 0 )

	for p, ply in ipairs( player.GetAll() ) do

		trace = util.TraceLine( {
			start = ply:GetPos() + Vector( 0, 0, 72),
			endpos = ply:GetPos() + Vector( 0, 0, -3 ),
			mask = MASK_WATER,
			filter = function( ent ) return true end
		} )

		if( trace.Hit ) then
			ply:SetGravity( 0.0001 )
			ply:SetGroundEntity( world )
		else
			ply:SetGravity( 1.0 )
		end

	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:SetGroundEntity
