Search the Community
Showing results for tags 'link set'.
-
Hello! Help please create an effect script for the old generator (link set). everything should happen in a sequence: pressing the on/off button - prim 1 lights up a lamp - prim 2 >done starter sound - one time ..........................remains??? sound generator - loop >done goes smoke - particles - from prim 3 >done pressing the on/off button - prim 1 smoke does not go the generator's sound stops >done starter stalls .......................................... remains??? the light goes out - prim 2 while I was able to create such a script: //* script_starts_here // integer run; integer PARTICLES_PRIM = 3; default { touch_start(integer total_number) { if(llDetectedKey(0)==llGetOwner()) { if(run) { run = FALSE; llLinkParticleSystem(PARTICLES_PRIM,[]); llStopSound(); llSetLinkPrimitiveParamsFast(LINK_SET, [ PRIM_FULLBRIGHT, ALL_SIDES, FALSE]); } else { run = TRUE; llLinkParticleSystem(PARTICLES_PRIM,[PSYS_PART_MAX_AGE,1.46, PSYS_PART_FLAGS, 263, PSYS_PART_START_COLOR, <0.99, 0.74, 0.73>, PSYS_PART_END_COLOR, <0.79, 0.65, 0.20>, PSYS_PART_START_SCALE,<0.75, 0.39, 0.00>, PSYS_PART_END_SCALE,<1.00, 0.88, 0.00>, PSYS_SRC_PATTERN, 2, PSYS_SRC_BURST_RATE,0.00, PSYS_SRC_BURST_PART_COUNT,4, PSYS_SRC_BURST_RADIUS,0.26, PSYS_SRC_BURST_SPEED_MIN,0.04, PSYS_SRC_BURST_SPEED_MAX,0.93, PSYS_SRC_ANGLE_BEGIN, 1.65, PSYS_SRC_ANGLE_END, 0.00, PSYS_SRC_MAX_AGE, 0.0, PSYS_SRC_TEXTURE, "74e8631c-33a9-bc1a-03d3-ede886272a21", PSYS_PART_START_ALPHA, 0.41, PSYS_PART_END_ALPHA, 0.00, PSYS_SRC_ACCEL, <0.00, 0.00, -0.92>]); llLoopSound("idle", 1.0); llSetLinkPrimitiveParamsFast(2, [ PRIM_FULLBRIGHT, 0, TRUE]); } } } } //* script_ends_here Ok I managed to make it so that the particles were coming from a separate prim. remains to understand how to insert the sound of a starter and a stalling generator. and the main thing is not clear why it turns on when you click on any place of the generator. how to make it work only when you click the on/off button? I will definitely continue to try to do everything myself, but if there are any tips I will be very grateful! Thanks for any help!