# Entity:HasSpawnFlags

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

```lua
boolean Entity:HasSpawnFlags( number spawnFlags )
```

## Açıklama

Bu varlığın belirtilen spawnflag bitlerinin ayarlı olup olmadığını döndürür.

## Argümanlar

1. [number](https://gmod.tr/wiki/number) **spawnFlags**: Kontrol edilecek spawnflag bitleri, bkz: [SF enum](https://gmod.tr/wiki/Enums/SF).

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

1. [boolean](https://gmod.tr/wiki/boolean): Varlığın o spawnflag'a sahip olup olmadığı.

### Örnek

Sandbox modunun PhysgunPickup hook'unda görüldüğü gibi.

```lua
function GM:PhysgunPickup( ply, ent )

	-- Haritacının mantığı izin vermiyorsa physbox'ları hareket ettirme
	if ( ent:GetClass() == "func_physbox" && ent:HasSpawnFlags( SF_PHYSBOX_MOTIONDISABLED ) ) then return false end

	return true

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