I can't get something simple to work.
I want to destroy an instance, then immediately check and do other tidy-ups if there are none of the objects left now.
After destroying the object, the rest of my function seems to act like I have not actually destroyed the object.
It's causing me so many headaches. It's looking like I'd have to write a new function to "tidy up" on next tick which is horrible and dirty.
Why does it work like this, surely I should be able to , in one function, add/destroy objects and do things as a result of that action.