EDIT: I've fixed the whole system myself. I reworked it while taking out the spawn(-1) functions. (Thats why I got rid of the actual post)
It works fine.
ID:143495
![]() Aug 21 2007, 11:01 am (Edited on Aug 22 2007, 3:48 am)
|
|
Destroy wrote:
spawn() runs the code inside it in parallel with the other code. (So the for loops would be running AT THE SAME TIME AS the checking code) No no, check this out. DM Reference says: If delay is negative, the spawned code is executed before continuing in the main code. Its confused everyone else who saw it. |
Obviously, that is not what you want in this case -- you want the loop to finish before continuing, so you should remove the spawn()s from the code, and un-indent everything inside them.