CreateObjectFromObjectMesh

Description

Creates an object by copying a single mesh from another object. An object can contain many meshes, and using CloneObject would copy them all. Use this command if you only want to copy a single mesh. Mesh indices are in the range 1 to GetObjectNumMeshes inclusive.

Definition

CreateObjectFromObjectMesh( objID, fromObjID, meshIndex )

integer CreateObjectFromObjectMesh( fromObjID, meshIndex )

Parameters