Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Can you generate random color particles ?

Jarkheld Desmoulins
Registered User
Join date: 13 Sep 2005
Posts: 3
09-16-2005 12:12
Well the title says it all here is what i'm trying to do,

float rcolor;
...
...
PSYS_PART_START_COLOR <rcolor,rcolor,rcolor>
...
...

default
{
state_entry
{
rcolor = llFrand(1);
...
}
}



Now is this possible because my script will compile but I keep getting errors and no particles at all when it runs.

If this solution has no way of working is there a way to make it generate random colors ?
Or is there a better way ?
Michael Martinez
Don't poke me!
Join date: 28 Jul 2004
Posts: 515
09-16-2005 13:56
Yep, put in a timer and..

timer()
{
PSYS_PART_START_COLOR <llFrand(1), llFrand(1), llFrand(1)>;
fireparticles() // the partcile script with all your setting and everything but color..
};
Michael Martinez
Don't poke me!
Join date: 28 Jul 2004
Posts: 515
09-16-2005 13:58
instead of state_entry change that to a llSetTimerEvent (5), then in the timer() event place you particle script with the random color line.. <llFrand(1), llFrand(1), llFrand(1)> color setting.