Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // After setting the particle the script will delete itself from object inventory
- // Script will size itself for the sphere prim that is less than about 2m in diameter
- // LSL partile does not work beyond 4x4x4m dues to the limitation of the function
- default
- {
- state_entry()
- {
- llParticleSystem([]);
- llSleep(1);
- key texture = "598a1535-6f73-6c77-c6a6-32ceaec9e290";
- float repeat_rate = .7;
- vector color_start = <.96, .8, .9>;
- vector color_end = <.95, 1,.95>;
- float glow_start = .05;
- float glow_end = .0;
- float particle_age = 3;
- vector start_scale = llGetScale() * 1.44;
- vector end_scale = llGetScale() * 1.8;
- llOwnerSay("Pulse Particle:" + (string)start_scale + " to " + (string)end_scale);
- llParticleSystem(
- [
- PSYS_SRC_PATTERN,PSYS_SRC_PATTERN_DROP,
- PSYS_PART_FLAGS,
- 0 |
- PSYS_PART_EMISSIVE_MASK |
- PSYS_PART_INTERP_COLOR_MASK |
- PSYS_PART_FOLLOW_SRC_MASK |
- PSYS_PART_INTERP_SCALE_MASK,
- PSYS_PART_START_COLOR, color_start, PSYS_PART_END_COLOR, color_end,
- PSYS_PART_START_ALPHA, .5, PSYS_PART_END_ALPHA, 0,
- PSYS_PART_START_GLOW, glow_start, PSYS_PART_END_GLOW, glow_end,
- PSYS_PART_START_SCALE, start_scale, PSYS_PART_END_SCALE, end_scale,
- PSYS_SRC_TEXTURE, texture,
- PSYS_SRC_MAX_AGE, 0, PSYS_PART_MAX_AGE, particle_age,
- PSYS_SRC_BURST_PART_COUNT, 1,
- PSYS_SRC_BURST_RATE, 1 / repeat_rate,
- PSYS_PART_BLEND_FUNC_SOURCE,PSYS_PART_BF_SOURCE_ALPHA,
- PSYS_PART_BLEND_FUNC_DEST,PSYS_PART_BF_ONE_MINUS_SOURCE_ALPHA
- ]);
- llSleep(1.5);
- llRemoveInventory(llGetScriptName());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement