User:Toady Nakamura/Ribbon Particle

From Second Life Wiki
Jump to: navigation, search
  • Visit my SL wiki home page for more simple scripts that work. -- Toady Nakamura

Build instructions:

  • create a box, install script.
  • wear & walk
//// "Rainbow Tail"   
 
 
default {
attach(key id) 
{ llSetRot( llEuler2Rot(<PI_BY_TWO,0,0>) ); 
}
 
state_entry()
 {
 
llParticleSystem( [
    PSYS_PART_FLAGS, 0
    | PSYS_PART_INTERP_COLOR_MASK   
    | PSYS_PART_INTERP_SCALE_MASK   
    | PSYS_PART_EMISSIVE_MASK    
    | PSYS_PART_RIBBON_MASK  
    ,    
    PSYS_PART_START_SCALE,  <0.25, 0.25, FALSE>,   
    PSYS_PART_END_SCALE,    <0.05, 0.05, FALSE>, 
    PSYS_PART_START_COLOR,  <1.00,1.00,1.00>,
    PSYS_PART_END_COLOR,    <1.00,1.00,1.00>, 
    PSYS_PART_START_ALPHA,  1.0,            
    PSYS_PART_END_ALPHA,    0.0,      
    PSYS_PART_MAX_AGE,      2.0,    
 
    PSYS_SRC_PATTERN, PSYS_SRC_PATTERN_DROP, 
    PSYS_SRC_TEXTURE, "db833e5e-9069-5891-de5b-1b56b073e718", 
 
    PSYS_SRC_BURST_RATE,    0.1,  
    PSYS_SRC_BURST_PART_COUNT, 1,  
    PSYS_SRC_ANGLE_BEGIN,   0.00*PI,   
    PSYS_SRC_ANGLE_END,     0.01*PI,    
    PSYS_SRC_BURST_SPEED_MIN,   0.0,  
    PSYS_SRC_BURST_SPEED_MAX,   0.09,
    PSYS_SRC_ACCEL,     <0.0, 0.0, 0.1>                           
        ] ); 
    }
}