Hi, I'm new on Lua Scripting but I learn very fast. I wanna know if there is a way to detect nearby particles, because I don't want to write a "Distance" code to, but if is the only way, just fine :)
the wiki says there is a sim.partNeighbours function which returns a list of all the nearby particles. This is probably what you want. It's way better than that laggy distance code which makes every element slow. I think it returns the indexes of the particles.
There are a few functions not listed there, but they probably won't be needed anyway (since i'm not even sure what they do). That entire page just needs to be fixed to clarify it, and add the tons and tons of functions I just added for the next version.
@mniip(View Post) That's just inefficient showing off. You should just print that text, instead of messing around with raw strings like that. Make something actually good if you want to show-off, not just something which's code looks fancy.