# LoadObjectWithChildren

## Description

Loads an object from a file, currently supported formats are .X .3ds .md3 .smd .md5 .lwo. .ac .b3d .dae .3d .lws .ms3d .blend .m3 .obj and .ago If the model file contains a bone hierarchy or animation data then this will also be loaded and associated with the object. If the model file contains a scene graph containing multiple objects then these will also be loaded and stored in separate objects which can be discovered with GetObjectNumChildren. If you just want to load a single object without any bones, animation, or children then use LoadObject instead.

## Definition

LoadObjectWithChildren( objID, szFilename )

void agk::LoadObjectWithChildren( UINT objID, const char* szFilename )

integer LoadObjectWithChildren( szFilename )

UINT agk::LoadObjectWithChildren( const char* szFilename )

## Parameters

- objID - The ID to use for the new object.
- szFilename - The name of the object file to load.