Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Particles Help Please

Mevo Syaka
Ganja Guru
Join date: 12 Dec 2006
Posts: 33
04-05-2007 20:10
High peeps,
Why won't this script allow me to move the object and have the particle follow? Also is there a way to keep it emitting 1 particle for as long as I like?

CODE

string pooftexture1 = "TEXTURE KEY";
float min = 1.0;
float max = 1.0;

Label()
{

llParticleSystem([
PSYS_PART_FLAGS , 0,
PSYS_PART_FOLLOW_SRC_MASK |
PSYS_PART_EMISSIVE_MASK |

PSYS_SRC_PATTERN, PSYS_SRC_PATTERN_DROP,
PSYS_SRC_TEXTURE, pooftexture1,
PSYS_PART_MAX_AGE, 1.0,
PSYS_SRC_MAX_AGE, 0.0,
PSYS_SRC_BURST_RATE, 1.0,
PSYS_SRC_BURST_PART_COUNT, 1,
PSYS_SRC_ACCEL, <0.0,0.0,0.0>,
PSYS_SRC_BURST_SPEED_MIN, min,
PSYS_SRC_BURST_SPEED_MAX, max,
PSYS_SRC_OMEGA, <0.0,0.0,0.0>
]);
}

default
{
state_entry()
{
Label();
llSetTimerEvent(30.0);
}

timer()
{
llParticleSystem([]);
Label();
}

changed(integer change)
{
if (change & CHANGED_INVENTORY)
{
llResetScript();
}
}
}


At one point the particle did follow the object when moved but now it doesn't seem to work...

All help is very much appreciated!
_____________________
FourTwenty Headshop



Simil Miles
Creator
Join date: 1 Mar 2007
Posts: 300
04-05-2007 23:16
Try this syntax :
CODE

PSYS_PART_FLAGS , (0|
PSYS_PART_FOLLOW_SRC_MASK |
PSYS_PART_EMISSIVE_MASK),


The maximum PSYS_PART_MAX_AGE is 30 seconds.
_____________________
UnConWTech @ Flo (144, 84, 224) http://unconwtech.free.fr

SL books http://astore.amazon.com/secondlife-sl-20/

Need a beta tester for quality assurance ?
Need a translator for English, French, Spanish ?
Mevo Syaka
Ganja Guru
Join date: 12 Dec 2006
Posts: 33
04-06-2007 08:48
Thanks for the help bro! Got it sorted :)
_____________________
FourTwenty Headshop