Blockland Forums > Modification Help
How to check if a projectile is still alive
<< < (2/3) > >>
otto-san:

--- Quote from: Greek2me on December 27, 2011, 10:24:29 PM ---What happens when it runs out? It crashes? It would make sense for it to recycle them.

--- End quote ---
why would it run out
Greek2me:
Because Torque runs out of numbers to assign? I honestly have no clue, I've just heard that it can.
Khepri:

--- Quote from: Greek2me on December 27, 2011, 10:24:29 PM ---What happens when it runs out? It crashes? It would make sense for it to recycle them.

--- End quote ---
If I'm not mistaken, an objects ID can go up to 2,147,483,647. (Highest number you can get with int32. If Blockland was a 64bit program it could even go up to 9,223,372,036,854,775,807! Now think about that.)
Even then it'd roll over to the negatives, not sure if a objectID can be negative though.
Chrono:
They do recycle (last time I heard anyways), but you're not ACTUALLY going to be writing an object's ID in script anyways.

There is also zero chance of two objects having the same ID. There wont ever be a conflict.
Xalos:

--- Quote from: Khepri on December 27, 2011, 11:52:54 PM ---If I'm not mistaken, an object's ID can go up to 2,147,483,647.
--- End quote ---

I thought object IDs could only go up to 9999999.
I'll have to test later.
Navigation
Message Index
Next page
Previous page

Go to full version