Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Please help with Glow script

Kimi Ayakashi
Registered User
Join date: 19 Aug 2006
Posts: 15
04-12-2007 23:09
I would be soo greatful if someone could help me with this glow script. It's the "night glow" script. I want to use this for a display I'm making. I'm trying to make tiny glow bugs, but they keep dying out. I need a script where they keep glowing. No flying around or anything unless the radius could be made very tiny. Small enough to surround a bonsai tree. :P Stationary is great too. As long as they keep glowing. So if someone could help me with a script thats stationary like this one and "keeps" glowing, or like a firefly script that can have a tiny radius. I would be sooo greatful. Thank you.







// No Frills Particle Script & customizations- by Jopsy Pendragon

default
{
state_entry() {
llSetTimerEvent(1);
}

timer() {
llSetTimerEvent(360);
vector pos = llGetSunDirection();
if ( pos.z > 0 ) llParticleSystem( [ ] );
else llParticleSystem( [
PSYS_SRC_PATTERN, PSYS_SRC_PATTERN_EXPLODE, // _PATTERN can be: *_EXPLODE, *_DROP
PSYS_SRC_BURST_PART_COUNT,(integer) 1, // define above
PSYS_SRC_BURST_RATE,(float) 1, // define above
PSYS_PART_MAX_AGE,(float) 20, // define above
PSYS_SRC_ACCEL,(vector) <0,0,0>, // aka gravity or push, ie <0,0,-1.0> = down
PSYS_SRC_BURST_SPEED_MIN,(float) 0.0, // Minimum velocity for new particles
PSYS_SRC_BURST_SPEED_MAX,(float) 0.0, // Maximum velocity for new particles
PSYS_PART_START_SCALE,(vector) <.05,.05,.05>, // Start Size, (minimum .04, max 10.0?)
PSYS_PART_END_SCALE,(vector) <.05,.05,.05>, // Start Size, (minimum .04, max 10.0?)
PSYS_PART_START_COLOR,(vector) <1,9,.85>, // Start Color, (RGB, 0 to 1)
PSYS_PART_START_ALPHA, (float) 0.1,
PSYS_PART_END_ALPHA,(float) 0.001,
PSYS_SRC_MAX_AGE,(float) 0, // turns emitter off after 5 minutes. (0.0 = never)
PSYS_PART_FLAGS,
PSYS_PART_EMISSIVE_MASK | // particles glow
//PSYS_PART_BOUNCE_MASK | // particles bounce up from emitter's 'Z' altitude
//PSYS_PART_WIND_MASK | // particles get blown around by wind
PSYS_PART_INTERP_SCALE_MASK |
0
] );
}
}
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
04-12-2007 23:40
This thread may help.