| Blockland Forums > Modification Help |
| How to check if a projectile is still alive |
| (1/3) > >> |
| Ipquarx:
How do you check if a projectile is still alive? |
| mp7964:
if(isObject(projectileid))? |
| Xalos:
--- Quote from: mp7964 on December 24, 2011, 07:40:26 PM ---if(isObject(projectileid))? --- End quote --- This man here knows what he's talking about. Now, teeeeechnically, Blockland recycles object IDs when it runs out, so it's possible for there to be a new object using the same ID. However, the chances of that happening before you check if the projectile still exists are roughly zero. |
| Amade:
--- Quote from: Xalos on December 27, 2011, 05:24:57 PM ---...Now, teeeeechnically, Blockland recycles object IDs when it runs out... --- End quote --- No it doesn't? |
| Greek2me:
What happens when it runs out? It crashes? It would make sense for it to recycle them. |
| Navigation |
| Message Index |
| Next page |