# LoadObject

## 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. This command will not load any animation or bone data and will consolidate the vertices into a single object with as few meshes as possible. To load animation and bone data use LoadObjectWithChildren instead.

## Definition

LoadObject( objID, szFilename )

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

integer LoadObject( szFilename, height )

UINT agk::LoadObject( const char* szFilename, float height )

LoadObject( objID, szFilename, height )

void agk::LoadObject( UINT objID, const char* szFilename, float height )

integer LoadObject( szFilename )

UINT agk::LoadObject( const char* szFilename )

## Parameters

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