Well I get entity origins from a .cfg file and store them in a dynamic array. There is a menu from which I can delete the entity, add them and etc. So when I delete the entity I want to delete the dynamic array item too, but how can I retrieve the array item id when deleting the entity ?