Jump to content

Tekillka

Resident
  • Posts

    4
  • Joined

  • Last visited

Reputation

0 Neutral

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. thanks a lot! I edited the code, but it turned out a little bit wrong. I Particle controlled by pressing the control. ie I click on Control - Particle started, click on the control - off. after the change happens, I click on Control - Particle run with a single texture, flies 3 Particle and nothing else happens. If you turn off and turn control - Particle fly with another texture. I do not tell that I do not have? how to make after clicking on the control Particle walked one after another without stopping? string CONTROLLER_ID = "A"; // See comments at end regarding CONTROLLERS.integer AUTO_START = FALSE; // Optionally FALSE only if using CONTROLLERS.list particle_parameters=[]; // stores your custom particle effect, defined below.list target_parameters=[]; // remembers targets found using TARGET TEMPLATE scripts.doParticles(){ particle_parameters =[ PSYS_PART_FLAGS,( 0|PSYS_PART_INTERP_SCALE_MASK|PSYS_PART_BOUNCE_MASK|PSYS_PART_EMISSIVE_MASK ),PSYS_SRC_PATTERN, PSYS_SRC_PATTERN_ANGLE ,PSYS_PART_START_ALPHA,1,PSYS_PART_END_ALPHA,1,PSYS_PART_START_COLOR,<1,1,1> ,PSYS_PART_END_COLOR,<1,1,1> ,PSYS_PART_START_SCALE,<0.28125,0.28125,0>,PSYS_PART_END_SCALE,<4,4,0>,PSYS_PART_MAX_AGE,5,PSYS_SRC_MAX_AGE,0,PSYS_SRC_ACCEL,<0,0,0>,PSYS_SRC_BURST_PART_COUNT,1,PSYS_SRC_BURST_RADIUS,9.89844,PSYS_SRC_BURST_RATE,1.09766,PSYS_SRC_BURST_SPEED_MIN,0,PSYS_SRC_BURST_SPEED_MAX,0,PSYS_SRC_ANGLE_BEGIN,1,PSYS_SRC_ANGLE_END,0,PSYS_SRC_OMEGA,<0,1,1>,PSYS_SRC_TEXTURE, (key) txtr ];if ( AUTO_START ) llParticleSystem( particle_parameters );}list textures = [ "18cfbfd6-ad39-11d5-9d21-00d0b7c730a8", "0444bf21-f77e-7f63-89e9-b839ec66bc15", "22aca67a-946a-fae7-448c-8da90265b34a", "fd459ac9-536b-a563-a12d-d0e9053f9e84"]; integer length; integer index; key txtr; default{ state_entry() { llSetTimerEvent(5.0); length = llGetListLength(textures); llParticleSystem( [] ); } timer() { llParticleSystem( [] ); txtr = llList2Key( textures,index ); doParticles(); index = ++index%length; }link_message( integer sibling, integer num, string mesg, key target_key ) { if ( mesg != CONTROLLER_ID ) { // this message isn't for me. Bail out. return; } else if ( num == 0 ) { // Message says to turn particles OFF: llParticleSystem( [ ] ); } else if ( num == 1 ) { // Message says to turn particles ON: llParticleSystem( particle_parameters + target_parameters ); } else if ( num == 2 ) { // Turn on, and remember and use the key sent us as a target: target_parameters = [ PSYS_SRC_TARGET_KEY, target_key ]; llParticleSystem( particle_parameters + target_parameters ); } else { // bad instruction number // do nothing. } } }
  2. help me please. I need to texture Particle changed. how to register in this script code to the texture changed over time? string CONTROLLER_ID = "A"; // See comments at end regarding CONTROLLERS. integer AUTO_START = FALSE; // Optionally FALSE only if using CONTROLLERS. list particle_parameters=[]; // stores your custom particle effect, defined below. list target_parameters=[]; // remembers targets found using TARGET TEMPLATE scripts. default { state_entry() { particle_parameters = [ PSYS_PART_FLAGS,( 0 |PSYS_PART_INTERP_SCALE_MASK |PSYS_PART_BOUNCE_MASK |PSYS_PART_EMISSIVE_MASK ), PSYS_SRC_PATTERN, PSYS_SRC_PATTERN_ANGLE , PSYS_PART_START_ALPHA,1, PSYS_PART_END_ALPHA,1, PSYS_PART_START_COLOR,<1,1,1> , PSYS_PART_END_COLOR,<1,1,1> , PSYS_PART_START_SCALE,<0.28125,0.28125,0>, PSYS_PART_END_SCALE,<4,4,0>, PSYS_PART_MAX_AGE,5, PSYS_SRC_MAX_AGE,0, PSYS_SRC_ACCEL,<0,0,0>, PSYS_SRC_BURST_PART_COUNT,1, PSYS_SRC_BURST_RADIUS,9.89844, PSYS_SRC_BURST_RATE,1.09766, PSYS_SRC_BURST_SPEED_MIN,0, PSYS_SRC_BURST_SPEED_MAX,0, PSYS_SRC_ANGLE_BEGIN,1, PSYS_SRC_ANGLE_END,0, PSYS_SRC_OMEGA,<0,1,1>, PSYS_SRC_TEXTURE, (key)"5637850d-b53b-9c35-89ac-35e226c2c7de", PSYS_SRC_TARGET_KEY, (key)"00000000-0000-0000-0000-000000000000" ]; if ( AUTO_START ) llParticleSystem( particle_parameters ); } link_message( integer sibling, integer num, string mesg, key target_key ) { if ( mesg != CONTROLLER_ID ) { // this message isn't for me. Bail out. return; } else if ( num == 0 ) { // Message says to turn particles OFF: llParticleSystem( [ ] ); } else if ( num == 1 ) { // Message says to turn particles ON: llParticleSystem( particle_parameters + target_parameters ); } else if ( num == 2 ) { // Turn on, and remember and use the key sent us as a target: target_parameters = [ PSYS_SRC_TARGET_KEY, target_key ]; llParticleSystem( particle_parameters + target_parameters ); } else { // bad instruction number // do nothing. } } }
  3. Can you please tell how to make a rocket when you start up not one, but several different?
×
×
  • Create New...