# GetSkeleton2DBoneParent

## Description

Returns the ID of the parent of the specified bone. If the bone does not exist or it does not / have a parent it will return -1. Indices start at 0.

## Definition

integer GetSkeleton2DBoneParent( iSkeleton, bone )

int agk::GetSkeleton2DBoneParent( UINT iSkeleton, int bone )

## Parameters

- iSkeleton - ID of the skeleton to check
- bone - ID of the bone to check