deleting types (entity doesnt exist)

Blitz3D Forums/Blitz3D Programming/deleting types (entity doesnt exist)

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

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.