# NEXTBOT:OnStuck

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

```lua
NEXTBOT:OnStuck()
```

## Açıklama

Bot takılıp kaldığını düşündüğünde çağrılır.

### Örnek

Yeni bir damageinfo nesnesi kullanarak, takılıp kaldığında botu öldürür.

```lua
function ENT:OnStuck()

	local dmginfo = DamageInfo()
	dmginfo:SetAttacker( self )

	self:OnKilled( dmginfo )

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/NEXTBOT:OnStuck
