# Entity:PlayScene

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

```lua
number, Entity Entity:PlayScene( string scene, number delay = 0 )
```

## Açıklama

Varlığın bir .vcd sahnesi oynatmasını sağlar. [Half-Life 2'deki tüm sahneler](https://developer.valvesoftware.com/wiki/Half-Life_2_Scenes_List).

## Argümanlar

1. [string](https://gmod.tr/wiki/string) **scene**: Sahnenin dosya yolu.
2. [number](https://gmod.tr/wiki/number) **delay** = 0: Sahnenin oynatılmaya başlamasına kadar saniye cinsinden gecikme.

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

1. [number](https://gmod.tr/wiki/number): Sahnenin tahmini uzunluğu.
2. [Entity](https://gmod.tr/wiki/Entity): Sahne varlığı; bu varlığı kaldırmak, sahnenin oynatılmaya devam etmesini durdurur.

### Örnek

1. oyuncunun baktığı NPC'nin `Welcome to City 17` konuşmasını yapmasını sağlar.

```lua
local entity = Entity( 1 ):GetEyeTrace().Entity

if ( entity:IsValid() and entity:IsNPC() ) then
	entity:PlayScene( "scenes/breencast/welcome.vcd" )
end
```

**Çıktı:** Varlık sahneyi oynatır.

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