Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Particle scripting

Phoenicis Sands
Registered User
Join date: 16 Apr 2007
Posts: 6
07-26-2007 13:03
I am a total scripting newbie, but I've got an idea and I'm wondering if it is even possible.

Can a particle effect be created that seems to start spread out around an area then collect in to a single point?

I've been through the Particle Lab and I don't recall seeing anything like that, though it WAS a while ago that I was there and my memory may be faulty.

Thanks in advance for any input.
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
07-26-2007 14:07
Yes, you have to use the PSYS_SRC_TARGET_KEY rule using the emitter object's key, along with a rather long-ish PSYS_PART_MAX_AGE setting.
Phoenicis Sands
Registered User
Join date: 16 Apr 2007
Posts: 6
07-27-2007 11:22
So this script would create white glowing particles for 5 seconds that would appear in a 1m radius around the emitter, move to the emitter and last for a total of 10 seconds, correct?

default
{
state_entry()
{
llParticleSystem([PSYS_PART_FLAGS, PSYS_PART_EMISSIVE_MASK | PSYS_PART_TARGET_POS_MASK, PSYS_SRC_TARGET_KEY, 0,
PSYS_PART_START_COLOR, <1,1,1>,
PSYS_PART_MAX_AGE, 10,
PSYS_SRC_BURST_RADIUS, 1,
PSYS_SRC_MAX_AGE, 5
]);
}
}

(edited to correct several mistakes in the original script)