Check If Entity Exists

Blitz3D Forums/Blitz3D Programming/Check If Entity Exists

Hello.
Is there amy command/way to check if an entity exists?

You can do this:
If entity=0 then runtimeerror "no entity here"

BUT, you must keep track of objects deleted and make the handle 0 when you delete them.

FreeEntity entity: entity=0

Thanks.