# Sandbox.Model.GetBoneParent

```csharp
int GetBoneParent(int boneIndex)
```

Returns the id of given bone's parent bone.

### Parameters

- `boneIndex` (`int`): The bone to look up parent of.

### Returns

`int`: The id of the parent bone, or -1 if given bone has no parent.

### Exceptions

- `System.ArgumentOutOfRangeException`: Thrown when given index exceeds range of [0,BoneCount-1]

Declared in [Sandbox.Model](/api/Sandbox.Model).
Assembly: `Sandbox.Engine`.
