Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

I need help with a confetti balloon.

Jackal Andrew
Registered User
Join date: 26 May 2008
Posts: 2
12-07-2008 15:03
I've always wanted a confetti balloon that will rise for 20 seconds then spray colorful particles then make the object die. I've made the balloon but i need help with the script. Anyone got any ideas?
P.S. i have gotten this far.
default
{
on_rez()
{
llSetForce(<0,0,10> * llGetMass(););
llSetTimer(20.0);
}
timer()
{
llDie();
}
}
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
12-07-2008 15:09
Cool idea! Most of what you want involves particles. Visit the Particle Laboratory at http://slurl.com/secondlife/teal/180/74/21/ to learn everything you will need to know for this project (including sample scripts and snippets) and more.
Jackal Andrew
Registered User
Join date: 26 May 2008
Posts: 2
I know
12-07-2008 16:47
From: Rolig Loon
Cool idea! Most of what you want involves particles. Visit the Particle Laboratory at http://slurl.com/secondlife/teal/180/74/21/ to learn everything you will need to know for this project (including sample scripts and snippets) and more.


I know that but I don't know where to put it in the a script. :(
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
12-07-2008 17:33
From: Jackal Andrew
I know that but I don't know where to put it in the a script. :(

In the timer event, above llDie().
Until you get it working, you might want to throw an llSleep in there also like this:

timer(){
//Do particle stuff here
llSleep(1.0);//adjust as necessary
llDie();
}
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
Yingzi Xue
Registered User
Join date: 11 Jun 2008
Posts: 144
12-08-2008 03:14
Also, make a confetti texture to use with the particles so it looks like confetti and not particles.
ElQ Homewood
Sleeps Professionally
Join date: 25 Apr 2007
Posts: 280
12-08-2008 05:26
Also, I've found it helpful to place the particle engine/system in a function, so you can call it from your code by simply calling the function, rather than putting all that into the script proper. Not sure how this helps or doesn't help performance, I just know it makes it easier for me to write and, later, read lol.