question: How can I List all entities? Or, maybe it exist a globale table?
The Problem:
I save a game with mod-entities. After loading the game, the entities (modiefied assembling maschine) created in the game.
But my user-predefined table >glob.Modmaschine< is empty. Here I store some properties and values for the mod-entity.
Without this properties the entities don`t work.
So I think about a workaround: OnLoad I search every entity, filter the mod-entities and destroy it. then create it new on same position and fill my table with the properties.
But this function need a rectangle to search, right? Whats the game borders?
Code: Select all
AllEntities = game.findentities{ {x1, y1}, {x2, y2} }