# 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 original object.

## Definition

CloneObject( newobjID, objID )

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

integer CloneObject( objID )

UINT agk::CloneObject( UINT objID )

## Parameters

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