# Entity:GetSequenceInfo

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

```lua
table Entity:GetSequenceInfo( number sequenceId )
```

## Açıklama

Bir entity'nin sekansı hakkında bilgi içeren bir tablo döndürür.

## Argümanlar

1. [number](https://gmod.tr/wiki/number) **sequenceId**: Entity'nin sekans ID'si.

## Döndürülenler

1. [table](https://gmod.tr/wiki/table): Entity'nin sekansı hakkında bilgi içeren tablo veya ID aralık dışındaysa `nil`. Bakınız [SequenceInfo yapısı](https://gmod.tr/wiki/Structures/SequenceInfo).

### Örnek

Her oyuncunun kafasının üzerine, mevcut sekansının adını, aktivite numarasını ve aktivite adını içeren sınırlayıcı kutusunu (bounding box) çizer.

```lua
hook.Add( "PostPlayerDraw", "Sequence_Name", function( ply )

	local seqinfo = ply:GetSequenceInfo( ply:GetSequence() )
	seqinfo.player = ply

	render.DrawWireframeBox( ply:GetPos(), ply:GetAngles(), seqinfo.bbmin, seqinfo.bbmax, color_white, true )

end )

hook.Add( "HUDPaint", "Sequence_Name", function()

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

		local seqinfo = ply:GetSequenceInfo( ply:GetSequence() )
		local textpos = ( ply:GetPos() + Vector( 0, 0, seqinfo.bbmax.z + 10 ) ):ToScreen()

		if textpos.visible then

			draw.SimpleText( seqinfo.label, "GModNotify", textpos.x, textpos.y, color_white, TEXT_ALIGN_CENTER )
			draw.SimpleText( seqinfo.activity .. ": " .. seqinfo.activityname, "GModNotify", textpos.x, textpos.y + 20, color_white, TEXT_ALIGN_CENTER )

		end

	end

end )
```

**Çıktı:** ![](https://gmod.tr/api/uploads/wiki/fe820115cd64bfb66c79.jpg)

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