CopyEntity
Copies an entity.
CopyEntity ( entity[,parent] )
Parameters
- entity
- the entity to copy.
- parent (optional)
- an entity to attach the copy to, or 0 for none.
Description
Makes a copy of an entity, with copies of its children, and gives back its handle. Copies of a mesh share its shape, which saves memory: load a model once, then copy it for every tree, coin or enemy.
