Add second explosionobject to findcollideparticles

I’m a scripting newbie.

I have this brilliant script by Carsten B. Larsen I found on the forum to make rain splash when it hits things. It looks great. However, I want to add a ripple effect as well as the splash as the drips in this case are landing in a puddle.

I have made a particle effect for the ripples to add to the one for the splash but cannot figure how to add a second explosionobject to the script.

Below: the script, a picture of the splashes working and my ripple effect not happening in the right places because I can’t figure how to get it to play with the script.

Thanks.


204782--7548--$splash_330.jpg

Perhaps you can give a bit more detail - I’m not too sure if you mean you don’t know how to add another transform variable for the explosion or you’re having problems with the result when you do. Also, are your problems occurring with Carsten’s original script or with some modifications you’ve made to it?

Thanks for getting back to me.

In the first instance I don’t know how to add another transform variable to Carston’s script. I had a few guesses but they didn’t work and I haven’t managed to find anything on the forum or scripting reference but it’s possible I don’t really know what I’m looking for.
It would be really useful to know how to do this as it’s a script with a lot of possibilities.

However, during my experiments with this particular situation I realised this solution will not work visually as if I attach the ripple script to the rain particle system I get ripples on the walls which is correct for the splashes but looks silly for the ripples.

I figured instead I would have to make an invisible mesh the shape of the puddle and attach a script to it to just transform the particles that hit the puddle mesh and only the puddle mesh but I haven’t a clue as to how to go about writing such a script so any ideas would be welcome.

I’ve started working my way through the scripting section of Will Goldstone’s book to start getting to grips with the fundmentals.