Jump to content

Particle system problem


Dasii Starfall
 Share

You are about to reply to a thread that has been inactive for 4552 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Can someone tell me why this particle system call doesn't work?

 

            llParticleSystem([
                PSYS_PART_FLAGS, 0
                    |PSYS_PART_EMISSIVE_MASK
                    |PSYS_PART_INTERP_COLOR_MASK
                    |PSYS_PART_INTERP_SCALE_MASK
                    |PSYS_PART_TARGET_LINEAR_MASK
                    ,
                PSYS_PART_START_COLOR, <1,1,1>,
                PSYS_PART_END_COLOR, <0,1,0>,
                PSYS_PART_START_ALPHA, 0,8,
                PSYS_PART_END_ALPHA, 0,5,
                PSYS_SRC_BURST_RATE , 0.0,
                PSYS_PART_START_SCALE,<.2,.2,.2>,
                PSYS_PART_END_SCALE,<1.5,1.5,1.5>,
                PSYS_SRC_BURST_PART_COUNT, 10,
                PSYS_SRC_TARGET_KEY, vehicle,
                PSYS_SRC_ACCEL,<0,0,0>

      ]);

 

It compiles OK, but then fails with runtime error: PSYS error: Rule 5 error, PSYS_SRC_ACCEL needs vector data.

As I understand it, PSYS_SRC_ACCEL is ignored when a target is used. I have it there with vector data. Removing it does not change the error.

I'm sure I'm just not seeing something.... but, yeah, I'm not seeing it.

Also, what should the particle system call to turn off the particles look like?

 

Link to comment
Share on other sites

Try this ....

integer gON;default{    touch_start(integer total_number)    {        if(gON)        {            llParticleSystem([                PSYS_PART_FLAGS, 0                    |PSYS_PART_EMISSIVE_MASK                    |PSYS_PART_INTERP_COLOR_MASK                    |PSYS_PART_INTERP_SCALE_MASK                    |PSYS_PART_TARGET_LINEAR_MASK                    ,                PSYS_PART_START_COLOR, <1,1,1>,                PSYS_PART_END_COLOR, <0,1,0>,                PSYS_PART_START_ALPHA, 0.8,                PSYS_PART_END_ALPHA, 0.5,                PSYS_SRC_BURST_RATE , 0.0,                PSYS_PART_START_SCALE,<0.2,0.2,0.2>,                PSYS_PART_END_SCALE,<1.5,1.5,1.5>,                PSYS_SRC_BURST_PART_COUNT, 10,                PSYS_SRC_TARGET_KEY, llGetKey(),                PSYS_SRC_ACCEL, <0.0,0.0,0.0>      ]);        }         else        {            llParticleSystem([]);        }        gON = !gON;    }           }

 If you look carefully, you'll see that you had commas where a couple of decimal points belonged.  I bet no scripter has ever done that before.  :smileytongue:

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 4552 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...