# Entity:GetSpawnEffect

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

```lua
boolean Entity:GetSpawnEffect()
```

## Açıklama

Bu varlıkta doğma (spawn) anında bir doğma efekti gösterip göstermememiz gerektiğini döndürür.

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

1. [boolean](https://gmod.tr/wiki/boolean): Doğma efektine izin veren veya vermeyen bayrak.

### Örnek

Sandbox modunun cl_init.lua dosyasından alınmıştır.

```lua
function GM:NetworkEntityCreated( ent )

	--
	-- If the entity wants to use a spawn effect
	-- then create a propspawn effect if the entity was
	-- created within the last second (this function gets called
	-- on every entity when joining a server)
	--

	if ( ent:GetSpawnEffect() && ent:GetCreationTime() > ( CurTime() - 1.0 ) ) then

		local ed = EffectData()
		ed:SetEntity( ent )
		util.Effect( "propspawn", ed, true, true )

	end

end
```

**Çıktı:** Varlığın spawnEffect bayrağının true olarak ayarlanıp ayarlanmadığını ve son saniye içinde oluşturulup oluşturulmadığını kontrol eder, ardından propspawn efektini gösterir.

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