|
HatHead Rickenbacker
Registered Loser
Join date: 6 Nov 2006
Posts: 133
|
02-07-2009 22:45
Hello, just starting work on a script to make a particle stand still in one place and never go away, or at least never appear to go away. Couldn't find an example like that on here - does anyone have a sample? Thanks for any help!
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
02-07-2009 23:10
Emit one particle at a time with zero velocity. You won't want to use any of the angle types unless both the start and end angles are zero/PI, or the radius is always zero (in which case you won't want the follow velocity flag to be on). You will want the follow source flag on if the emitter is going to move. Giving the particle a decently long lifetime and having a somewhat shorter period between emissions is probably the way to go. No acceleration, no target., no color or scale interpolation.
|
|
Debbie Trilling
Our Lady of Peenemünde
Join date: 17 Oct 2006
Posts: 434
|
02-07-2009 23:44
Something like this should do the trick...
// size in meters of the projected image (max 4.00) float Size = 2.50;
// height above object the centre of projected image will be float Height = 2.50;
// UUID of particle texture string Texture = "5748decc-f629-461c-9a36-a35a221fe21f";
ParticleStart() { llParticleSystem([ PSYS_PART_FLAGS, 0, PSYS_SRC_PATTERN, 4, PSYS_PART_START_ALPHA, 0.50, PSYS_PART_END_ALPHA, 0.50, PSYS_PART_START_COLOR, <1.0,1.0,1.0>, PSYS_PART_END_COLOR, <1.0,1.0,1.0>, PSYS_PART_START_SCALE, <Size ,Size,0.00>, PSYS_PART_END_SCALE, <Size,Size,0.00>, PSYS_PART_MAX_AGE, 1.20, PSYS_SRC_MAX_AGE, 0.00, PSYS_SRC_ACCEL, <0.0,0.0,0.0>, PSYS_SRC_ANGLE_BEGIN, 0.00, PSYS_SRC_ANGLE_END, 0.00, PSYS_SRC_BURST_PART_COUNT, 8, PSYS_SRC_BURST_RADIUS, Height, PSYS_SRC_BURST_RATE, 0.10, PSYS_SRC_BURST_SPEED_MIN, 0.00, PSYS_SRC_BURST_SPEED_MAX, 0.00, PSYS_SRC_OMEGA, <0.00,0.00,0.00>, PSYS_SRC_TEXTURE, Texture]); }
default { state_entry() { ParticleStart(); } }
_____________________
http://wiki.secondlife.com/wiki/User:debbie_Trilling
|
|
HatHead Rickenbacker
Registered Loser
Join date: 6 Nov 2006
Posts: 133
|
02-08-2009 07:20
Awesome! Thank you both kindly for being so rocking!
|