Aller au contenu

Photo

How long does it take for an object to actually get destroyed?


  • Veuillez vous connecter pour répondre
1 réponse à ce sujet

#1
CheeseshireCat

CheeseshireCat
  • Members
  • 48 messages
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.

#2
GhostOfGod

GhostOfGod
  • Members
  • 863 messages
This might help ya:

social.bioware.com/forum/1/topic/192/index/5209091