# CloneObject

## Description

Copies an object into a new ID, the new object is completely separate from the original object. Cloning an instanced object will produce another instance that shares vertex data with the origianl object. Returns the ID of the new object.

## Definition

integer CloneObject( objID )

UINT agk::CloneObject( UINT objID )

CloneObject( newobjID, objID )

void agk::CloneObject( UINT newobjID, UINT objID )

## Parameters

- objID - The ID of the object to copy.
- newobjID - The ID of the new object.