check if entity exists?

Blitz3D Forums/Blitz3D Beginners Area/check if entity exists?

Not quite. When you FreeEntity, the handle does not automatically reset to zero. There's really no way to know if an entity exists or not unless you manually keep track.

sphere = CreateSphere()

... some code
FreeEntity sphere
sphere = 0 //manually reset entity handle to 0


Edit: Looks like CyBeRGoth beat me to it.