DeleteEntity /Scene and entities

ETHEntity@ DeleteEntity(ETHEntity@ entity)

Deletes the entity and returns null if it has been successfully removed from scene.

Example:

@character = DeleteEntity(character);
if (character is null)
{
       print("It has been successfully deleted\n");
}

This function removes the entity from scene, however the memory won't be freed if other handles still point to it. For this reason, avoid having more than one handle to the same entity (specially if there are global references).