Advertisement
Otoa

Pulse Particle Pink for Sphere Shape

Dec 29th, 2024
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Linden Scripting 1.86 KB | Source Code | 0 0
  1. // After setting the particle the script will delete itself from object inventory
  2. // Script will size itself for the sphere prim that is less than about 2m in diameter
  3. // LSL partile does not work beyond 4x4x4m dues to the limitation of the function
  4.  
  5. default
  6. {
  7.     state_entry()
  8.     {
  9.         llParticleSystem([]);
  10.         llSleep(1);
  11.         key texture = "598a1535-6f73-6c77-c6a6-32ceaec9e290";
  12.         float  repeat_rate  = .7;
  13.         vector color_start  = <.96, .8, .9>;
  14.         vector color_end    = <.95, 1,.95>;
  15.         float  glow_start   = .05;
  16.         float  glow_end     = .0;
  17.         float  particle_age = 3;
  18.  
  19.         vector start_scale = llGetScale() * 1.44;
  20.         vector end_scale   = llGetScale() * 1.8;
  21.         llOwnerSay("Pulse Particle:" + (string)start_scale + " to " + (string)end_scale);
  22.         llParticleSystem(
  23.         [
  24.             PSYS_SRC_PATTERN,PSYS_SRC_PATTERN_DROP,
  25.             PSYS_PART_FLAGS,
  26.                 0 |
  27.                 PSYS_PART_EMISSIVE_MASK |
  28.                 PSYS_PART_INTERP_COLOR_MASK |
  29.                 PSYS_PART_FOLLOW_SRC_MASK |
  30.                 PSYS_PART_INTERP_SCALE_MASK,
  31.  
  32.             PSYS_PART_START_COLOR, color_start, PSYS_PART_END_COLOR, color_end,
  33.             PSYS_PART_START_ALPHA, .5, PSYS_PART_END_ALPHA, 0,
  34.             PSYS_PART_START_GLOW, glow_start, PSYS_PART_END_GLOW, glow_end,
  35.  
  36.             PSYS_PART_START_SCALE, start_scale, PSYS_PART_END_SCALE, end_scale,
  37.             PSYS_SRC_TEXTURE, texture,
  38.             PSYS_SRC_MAX_AGE, 0, PSYS_PART_MAX_AGE, particle_age,
  39.  
  40.             PSYS_SRC_BURST_PART_COUNT, 1,
  41.             PSYS_SRC_BURST_RATE, 1 / repeat_rate,
  42.  
  43.             PSYS_PART_BLEND_FUNC_SOURCE,PSYS_PART_BF_SOURCE_ALPHA,
  44.             PSYS_PART_BLEND_FUNC_DEST,PSYS_PART_BF_ONE_MINUS_SOURCE_ALPHA
  45.  
  46.         ]);
  47.  
  48.         llSleep(1.5);
  49.         llRemoveInventory(llGetScriptName());
  50.     }
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement