# GetObjectBoneByName

## Description

Gets the index of a bone by its name. Names are loaded from the model file when LoadObjectWithChildren is used, otherwise no bones are loaded. Indexes will be in the range 1 to num bones, or 0 if not found.

## Definition

integer GetObjectBoneByName( objID, name )

UINT agk::GetObjectBoneByName( UINT objID, const char *name )

## Parameters

- objID - The ID of the object to check.
- name - The name of the bone to find.