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.

Its weird because I use the types to count the number of ships and display it on the screen.

I started off with 20 ships, it went down to 19 as it should, this means that the type was deleted successfully.

I also have a similar error with entitypicking, using the handle() and object() commands.

It seems to have an error when I do this:

s\bullet_collision=EntityPick (s\ship_Handle,20)
hit_ship$=EntityName(s\bullet_collision)
If hit_ship>0
shoot(s\bullet_handle,hit_ship,s\colour,10,0)
EndIf


When I use the handle() and object() commands putting
if s\bullet_collision>0
used to work but it always equals something bigger than zero even when it doesnt pick an entity when I use object and handle commands.
Doesnt make much sense.