check for existence of entity

Blitz3D Forums/Blitz3D Programming/check for existence of entity

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.

Oh and one last thing. There is NO way to determine if an entity exists, nor will there ever be. It's completely up to you to make sure you don't delete an entity and fail to update all pointers to it.

This is unfortunate, but Mark has said that's the way it's gotta be. I had a problem with this myself in my particle system and shadow systems because I didn't want to have to make the user tell the system when they'd deleted an entity. But it needed to know if they had or it would crash.

Of course the "proper" way to handle that would then be to override the FreeEntity command with my own FreeEntity command that frees the entity and removes it from my shaodwe system as well, but that is not possible in Blitz.