deleting types (entity doesnt exist)

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

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.


There is a long list of entity numbers, how do I tell if it is the last ship?


which ever one is 0.


The ships are successfully moved at the beginning of the game but as soon as one dies the error happens.


ah. didn't know that.

I don't think that that's it, fredborg. It might be, however, wouldn't that be a type does not exist error instead of a entity does not exist?

Well, try this:
for s.ship=each ship
 if s\ship_handle then moveentity s\ship_handle 0,0,s\speed
next


if there's still an error, then that means you're freeing the entity but not the type - somehow :P