Jump to content

Touch Particle System, follow Owner


IA Nova
 Share

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

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

Recommended Posts

I just explored many post, but I can not understand, how to make my objects with particles send their particles to the avatar in the center X_x 

 

i have 1 galaxy, and the galaxy have much effect 

4a8edee16c.png

5 balls that have to send a line of particles to the avatar ...

and an explosion of particles that has to end in the avatar ...

I copied the code but when copying the udi changes, then the effect is discarded

I would like to know how the effects independently go to their owner 

 

ball particle : 

default
{
    state_entry()
    {
        llListen(-77,"","","");
    }
    
    on_rez(integer message) {
     llResetScript();   
    }
  
    listen(integer channel, string name, key id, string message){
        if(llGetOwnerKey(id)==llGetOwner()){

            if("on1" == message){
                
            llParticleSystem(
        [
            PSYS_SRC_PATTERN,PSYS_SRC_PATTERN_ANGLE,
            PSYS_SRC_BURST_RADIUS,0,
            PSYS_SRC_ANGLE_BEGIN,3.14,
            PSYS_SRC_ANGLE_END,-1.8,
            PSYS_SRC_TARGET_KEY,(key) "4f73291b-bdfa-5cf7-180d-d7f649a18152",
            PSYS_PART_START_COLOR,<0.000000,0.500000,1.000000>,
            PSYS_PART_END_COLOR,<1.000000,1.000000,1.000000>,
            PSYS_PART_START_ALPHA,1,
            PSYS_PART_END_ALPHA,0,
            PSYS_PART_START_GLOW,0.3,
            PSYS_PART_END_GLOW,0,
            PSYS_PART_BLEND_FUNC_SOURCE,PSYS_PART_BF_SOURCE_ALPHA,
            PSYS_PART_BLEND_FUNC_DEST,PSYS_PART_BF_ONE_MINUS_SOURCE_ALPHA,
            PSYS_PART_START_SCALE,<0.531000,0.331000,0.000000>,
            PSYS_PART_END_SCALE,<1.700000,2.700000,0.000000>,
            PSYS_SRC_TEXTURE,"dfcfdd82-6fca-7ddb-1875-763cc3b68ba5",
            PSYS_SRC_MAX_AGE,0,
            PSYS_PART_MAX_AGE,5,
            PSYS_SRC_BURST_RATE,0,
            PSYS_SRC_BURST_PART_COUNT,1,
            PSYS_SRC_ACCEL,<0.000000,0.000000,0.000000>,
            PSYS_SRC_OMEGA,<0.000000,0.000000,0.000000>,
            PSYS_SRC_BURST_SPEED_MIN,2.6,
            PSYS_SRC_BURST_SPEED_MAX,1.8,
            PSYS_PART_FLAGS,
                0 |
                PSYS_PART_EMISSIVE_MASK |
                PSYS_PART_FOLLOW_VELOCITY_MASK |
                PSYS_PART_INTERP_COLOR_MASK |
                PSYS_PART_INTERP_SCALE_MASK |
                PSYS_PART_TARGET_POS_MASK
                ]); 
         
        }
            else if ("off2" == message){
            llParticleSystem([]);  

}
}
}
}

// PSYS_SRC_TARGET_KEY,(key) "4f73291b-bdfa-5cf7-180d-d7f649a18152", = is fail! the udi is change D: 

the effect of the other particle is same, 

If I find a solution for this, I can fix the other ... this is very simple, I just do not know how to do it! It is probably easy for other people>, < 

 

the idea is to do this, but when I make a copy of the object that receives the particles and changes its uudi and then the effect is broken 

dee398078a.png 

 

if someone can help me with this I appreciate it >///<

Link to comment
Share on other sites

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