Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Thrower (particle?/any Object)

ChyriaH Collins
Registered User
Join date: 30 Aug 2007
Posts: 5
02-25-2009 11:52
Hi..can anyone tell me or direct me to the type of script i would need to distribute (candY) or throw candy in the air or downward once touched...like a bead thrower?
what is the name of such a script?
where can i find such a script?
and if you are a scripter..please contact me inworld.

thanks
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
02-25-2009 12:25
You'll have much better luck asking in the Products Wanted forum or looking on XStreetSL. This forum is the place to ask if you need help writing or debugging a script of your own.
Dekka Raymaker
thinking very hard
Join date: 4 Feb 2007
Posts: 3,898
02-27-2009 03:18
I Want Candy…
Yingzi Xue
Registered User
Join date: 11 Jun 2008
Posts: 144
02-27-2009 03:40
The script is simple...

particle_effect()
{
//place particle statement here
}

default
{
touch_start(integer touches)
{
particle_effect();
}
}

To create the candy effect you'll need to get yourself a particle generator that makes llParticleSystem statements.

-Set the particle generator to EXPLODE.
-Set the particle acceleration to 0,0,-z (x,y,z) where the negative number is the acceleration downward (adjust accordingly; usually between -1 and -5 will do it).
-Specify a candy texture to use (has multiple pieces of candy on it).
-Set particle count to something like 5.
-Set the particle source age to somewhere between 1 and 5 seconds.
-Set the particle age to adjust when the particles disappear.
-Set burst radius to somewhere between 0 and 2 meters, adjusted to your object size.
-Create your llParticleSystem code and paste it in the above script, then put it inside your object.

This should get in the ballpark of the effect you want.