Check If Entity Exists

Blitz3D Forums/Blitz3D Programming/Check If Entity Exists

ucode(Posted 2003) [#1]
Hello.
Is there amy command/way to check if an entity exists?


Beaker(Posted 2003) [#2]
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


ucode(Posted 2003) [#3]
Thanks.