# Entity:SetEntity

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

```lua
Entity:SetEntity( string name, Entity entity )
```

## Açıklama

İpin (rope) başlangıç veya bitiş entity bağlantısını ayarlamanızı sağlar.

## Argümanlar

1. [string](https://gmod.tr/wiki/string) **name**: Değiştirilecek değişkenin adı. Kabul edilen isimler StartEntity ve EndEntity'dir.
2. [Entity](https://gmod.tr/wiki/Entity) **entity**: Belirtilen bağlantıya uygulanacak olan entity.

### Örnek

Kısıtlamalar (constraints) modülünde görüldüğü gibi.

```lua
local rope = ents.Create( "keyframe_rope" )

-- Bağlantı noktası 1
rope:SetEntity( "StartEntity", 	Entity(1) )
-- Bağlantı noktası 2
rope:SetEntity( "EndEntity", 	Entity(2) )
```

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