I have the 2 operations in different functions.
There is too much code to post here so Ill give the best description
Update_small_ships()
is the function that is called every loop and moves the ships forward
Choose_target()
Is the function that is called once every second and deletes and frees entities.
What I am doing used to work.
My ships used to have a lot of different types but on someones advice I put every single ship into the same type and implemented the use of entityname and object() commands to speed up type access.
I dont know why the error occurs still.
There is too much code to post here so Ill give the best description
Update_small_ships()
is the function that is called every loop and moves the ships forward
Choose_target()
Is the function that is called once every second and deletes and frees entities.
What I am doing used to work.
My ships used to have a lot of different types but on someones advice I put every single ship into the same type and implemented the use of entityname and object() commands to speed up type access.
I dont know why the error occurs still.