SeekEntity /Scene and entities

ETHEntity@ SeekEntity(int id)

Returns a handle to the entity with the given id.

Returns null if no entity was found.

const int id = AddEntity("crate.ent", pos);
ETHEntity@ crate = SeekEntity(id);

If the selected entity is temporary, this function returns null.

Warning! Depending on how many entities the scene has, this function may become expensive to the CPU. Using this function too many times inside the game loop must be avoided. Consider retrieving those entities before the game loop starts and store them in an accessible place.