AddEntity /Scene and entities

int AddEntity(string entityName, vector3 position, float angle, ETHEntity@ &out, string alternativeName, float scale)

Adds an entity to scene.

position are the initial coordinates

angle is the initial rotating angle

this function copies to &out a handle to the new entity

leave an empty string as argument to alternativeName in order to use the default entity name (fileName).

scale sets the initial entity scale value

This funcion returns the new entity ID.

ETHEntity@ soldierHandle;

// Adds a soldier which is twice as big (2.0f as scale)
AddEntity("soldier.ent", vector3(0,0,0), 90.0f, @soldierHandle, "bigger_soldier", 2.0f);