array Help

Blitz3D Forums/Blitz3D Programming/array Help

Caton(Posted 2015) [#1]
How do I destroy an object that uses array?


Caton(Posted 2015) [#2]
I'm trying to destroy objectmeshC(j)=CreateCube()


Matty(Posted 2015) [#3]
freeentity objectmeshC(j)


An unnecessary step but can be useful to ensure your program is aware the entity does not exist is to then set objectMeshC(j) = 0

finally - if you really want the array removed as well - dim it with 0 size afterwards....