# Entity:SetBonePosition

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

```lua
Entity:SetBonePosition( number bone, Vector pos, Angle ang )
```

## Açıklama

Kemiğin pozisyonunu ve açılarını ayarlar.

> **DOĞRULAMA:** Değişikliklerin gerçekleşmesi için, bu fonksiyonun bir [renderlama](https://gmod.tr/wiki/Render_Order) kancasında (hook) çağrılması gerekir.

## Argümanlar

1. [number](https://gmod.tr/wiki/number) **bone**: Değiştirilecek kemiğin ID'si
2. [Vector](https://gmod.tr/wiki/Vector) **pos**: Ayarlanacak pozisyon
3. [Angle](https://gmod.tr/wiki/Angle) **ang**: Ayarlanacak açılar

### Örnek

Her oyuncunun kafasını karakterinin yukarısına ayarlar

```lua
hook.Add("PrePlayerDraw", "HeadsUp", function(ply, flags)
	local bone = ply:LookupBone( "ValveBiped.Bip01_Head1" )

	if not bone then
		return
	end

	local angle = ply:EyeAngles() + Angle(-90,0,90)
	local position = ply:LocalToWorld( Vector(0,0,100) )

	ply:SetBonePosition( bone, position , angle )

end)
```

**Çıktı:**

![SetBonePosExample.jpg](https://gmod.tr/api/uploads/wiki/b7a03ee6526e1723e324.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:SetBonePosition
