CreateEntity()

Syntax

Result = CreateEntity(#Entity, MeshID, MaterialID, [x, y, z])
Description
Creates a new #Entity using the specified Mesh and Material. Valids 'MeshID' and 'MaterialID' can be easily obtained with the MeshID() and MaterialID() commands. The optionals x,y,z parameters can be specified to set the position of the newly created entity in the world. If the 'Result' is 0, the #Entity creation has failed. If the #Entity was already created, it is automatically freed and replaced by the new one.

Supported OS

Windows, Linux

<- CopyEntity() - Entity Index - EntityAnimationLength() ->