Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

trail emitter script?

Carly Sonic
Registered User
Join date: 2 Jun 2006
Posts: 61
07-08-2006 07:58
This girl would like to beg for assistance on a script. She's looking for a script that she can place in a wearable item and have it emit a trail of particals as she moves. Anyone have a script for this?
Joannah Cramer
Registered User
Join date: 12 Apr 2006
Posts: 1,539
07-08-2006 08:10
A generic particle script can be found here:

http://secondlife.com/badgeo/wakka.php?wakka=LibraryKeknehvParticles

but one would need to manually tweak the parameters for desired effect. There's free 'particle generator' products on slExchange marketplace, ranging from free to expensive... that make this tweaking much easier, and provide ready-to-use scripts.
Dransen Hulka
Registered User
Join date: 8 May 2006
Posts: 3
07-09-2006 16:55
There are paw prints scripts out there as well that work pretty good for this sort off thing.

Or are you looking for a trail of particle emmiters.
Jopsy Pendragon
Perpetual Outsider
Join date: 15 Jan 2004
Posts: 1,906
07-09-2006 17:22
CODE

// This might get you in the ballpark :)
// a basic 'trailing particle' sample script - free & resellable.

default
{
state_entry()
{

string texture = "";

if ( llGetInventoryNumber( INVENTORY_TEXTURE ) > 0 )
texture = llGetInventoryName( INVENTORY_TEXTURE, 0 );

llParticleSystem( [
PSYS_SRC_TEXTURE, texture,
PSYS_PART_START_SCALE, < .2, .2, 0 >, PSYS_PART_END_SCALE, < .03, .03, 0 >,
PSYS_PART_START_COLOR, < 1, 1, 1 >, PSYS_PART_END_COLOR, < 0,0,0 >,
PSYS_PART_START_ALPHA, 1.0, PSYS_PART_END_ALPHA, 0.4,

PSYS_SRC_BURST_PART_COUNT, 5,
PSYS_SRC_BURST_RATE, 0.05,
PSYS_PART_MAX_AGE, 3.0,
PSYS_SRC_MAX_AGE, 0.0,

PSYS_SRC_PATTERN, PSYS_SRC_PATTERN_EXPLODE, // DROP, EXPLODE, ANGLE, ANGLE_CONE,
PSYS_SRC_ANGLE_BEGIN, 0.0, PSYS_SRC_ANGLE_END, 0.0,
PSYS_SRC_BURST_RADIUS, 0.0,
PSYS_SRC_OMEGA, < 0.00, 0.00, 0.00 >,

PSYS_SRC_BURST_SPEED_MIN, .01, PSYS_SRC_BURST_SPEED_MAX, 0.05,
PSYS_SRC_ACCEL, < 0.00, 0.00, 0.05 >,
// PSYS_SRC_TARGET_KEY, llGetKey(),
PSYS_PART_FLAGS, ( 0 // | PSYS_PART_EMISSIVE_MASK
// | PSYS_PART_BOUNCE_MASK
// | PSYS_PART_WIND_MASK
// | PSYS_PART_FOLLOW_VELOCITY_MASK
// | PSYS_PART_FOLLOW_SRC_MASK
| PSYS_PART_INTERP_COLOR_MASK
| PSYS_PART_INTERP_SCALE_MASK
// | PSYS_PART_TARGET_POS_MASK
// | PSYS_PART_TARGET_LINEAR_MASK
) ] );
}
}
_____________________
* The Particle Laboratory * - One of SecondLife's Oldest Learning Resources.
Free particle, control and targetting scripts. Numerous in-depth visual demonstrations, and multiple sandbox areas.
-
Stop by and try out Jopsy's new "Porgan 1800" an advanced steampunk styled 'particle organ' and the new particle texture store!