Jump to content

use linked prim color as particle color, script error, need help!


Rhemah
 Share

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

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

Recommended Posts

particles(vector color)
{
    llParticleSystem([
           PSYS_SRC_TEXTURE, llGetInventoryName(INVENTORY_TEXTURE, 0), 
           PSYS_PART_START_SCALE, <0.04, .3, FALSE>, 
           PSYS_PART_END_SCALE, <.2, 0.5, FALSE>, 
           PSYS_PART_START_COLOR, color,    
           PSYS_PART_END_COLOR, color, 
           PSYS_PART_START_ALPHA,  (float)0.75,            
           PSYS_PART_END_ALPHA, (float)0.50,   
           PSYS_SRC_BURST_PART_COUNT, (integer)5, 
           PSYS_SRC_BURST_RATE, (float) 0.01,  
           PSYS_PART_MAX_AGE, (float)1.0, 
           PSYS_SRC_MAX_AGE,(float) 0.0,  
           PSYS_SRC_PATTERN, (integer)8, 
           PSYS_SRC_BURST_SPEED_MIN, (float)1.3,   
           PSYS_SRC_BURST_SPEED_MAX, (float)1.9, 
           PSYS_SRC_BURST_RADIUS, 0.1,
           PSYS_SRC_ANGLE_BEGIN, (float) 0.08*PI,    
           PSYS_SRC_ANGLE_END, (float)0.08*PI,  
           PSYS_SRC_ACCEL, <0.0,0.0, - 2.0 >,          
           PSYS_PART_FLAGS, (integer)( 0         
            | PSYS_PART_INTERP_COLOR_MASK   
            | PSYS_PART_INTERP_SCALE_MASK   
            | PSYS_PART_EMISSIVE_MASK   
            | PSYS_PART_FOLLOW_VELOCITY_MASK)        
        ]);
}
default
{
    state_entry()
    {
        vector color;
        color =  llList2Vector(llGetLinkPrimitiveParams(2, [PRIM_COLOR]), 0);
        particles(color);
        
    }

}

i'm not sure what im missing, please help =(

Link to comment
Share on other sites

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...