Jump to content

Particle system stops working


naughtyniece
 Share

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

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

Recommended Posts

Hello,

I have a fire particle system i use in my fireplace, it is started by a command "lit" being sent, but if i move more than a certain distance from the prim, the particle system stops, and the fire goes out

This is my code, what do i need to do to make this so it does not go out.?

default
{
    state_entry()
    {
        llListen (-32376,"","","");
        
    }

    listen(integer channel, string name, key id, string message)
     {
         
         list data = llParseString2List(message,["|"],[]); 
         string displayName = llList2String(data,0);
         string command = llList2String(data,1);

        if (command == "lit") {
        
        llParticleSystem([
PSYS_PART_FLAGS,( 0 
|PSYS_PART_INTERP_COLOR_MASK
|PSYS_PART_INTERP_SCALE_MASK
|PSYS_PART_FOLLOW_SRC_MASK
|PSYS_PART_EMISSIVE_MASK ), 
PSYS_SRC_PATTERN, PSYS_SRC_PATTERN_EXPLODE ,
PSYS_PART_START_ALPHA,1,
PSYS_PART_END_ALPHA,0.101961,
PSYS_PART_START_COLOR,<1,1,0.4> ,
PSYS_PART_END_COLOR,<1,0.4,0> ,
PSYS_PART_START_SCALE,<0.78125,0.78125,0>,
PSYS_PART_END_SCALE,<0.09375,0.09375,0>,
PSYS_PART_MAX_AGE,2.19922,
PSYS_SRC_MAX_AGE,0,
PSYS_SRC_ACCEL,<0,0,0.296875>,
PSYS_SRC_BURST_PART_COUNT,5,
PSYS_SRC_BURST_RADIUS,0,
PSYS_SRC_BURST_RATE,0.0976563,
PSYS_SRC_BURST_SPEED_MIN,0.0507813,
PSYS_SRC_BURST_SPEED_MAX,0.15625,
PSYS_SRC_ANGLE_BEGIN,0,
PSYS_SRC_ANGLE_END,0,
PSYS_SRC_OMEGA,<0,0,0>,
PSYS_SRC_TEXTURE, (key)"ed50299f-8f21-f555-a07d-49ad92e709a3",
PSYS_SRC_TARGET_KEY, (key)"00000000-0000-0000-0000-000000000000"
 ]);
    }
    else {
        llParticleSystem([]);}
    }
    
}

 

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 2262 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...