Splitting from another thread.
I have noticed that when I need to clean up some objects (not inventory items) the same approach often doesn't work, because there just isn't GetNextObjectByTag and GetObjectByTag still often picks the same object even if I destroy it, often looping like forever resulting in the "Too Many Instructions" error.
So what would be the most correct way to do that?
So far, I have to resort to two loops, one while GetObjectByTag("tag", i) isn't OBJECT_INVALID and going i++, then running another loop, a for one, *down*Â as (i, i>=0, i--), actually destroying them. Down because if going up, objects can get destroyed in time, "dropping" the rest down so that some don't get destroyed.