Check to see if an entity still exists at a handle

Blitz3D Forums/Blitz3D Programming/Check to see if an entity still exists at a handle

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.

One way that springs to mind is to set all handles to zero when freeing them. For example, replace FreeEntity by adding this function to your code :

Function MyFreeEntity(ent)
FreeEntity(ent)
Return 0
End Function

And replace all FreeEntity(ent) calls with ent=FreeEntity(ent)