// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Miniature rain cloud // Not compiled or tested in-world // Setup: Place in a spare emitter above a miniature scene. Owner-touch toggles. Acceleration is world-down, regardless of prim rotation. // Stop / restore: Touch to stop; remaining drops disappear after two seconds. // Notes: A compact rain effect, not region weather. Uses eight particles per second and replaces prior particle settings. // License: see LICENSE in this distribution. // Original Incoprea example. MIT. Not compiled or tested in-world. integer active; default { touch_start(integer count) { if (llDetectedKey(0) != llGetOwner()) return; active = !active; if (!active) { llParticleSystem([]); return; } llParticleSystem([ PSYS_PART_FLAGS, PSYS_PART_INTERP_COLOR_MASK | PSYS_PART_FOLLOW_VELOCITY_MASK, PSYS_SRC_PATTERN, PSYS_SRC_PATTERN_EXPLODE, PSYS_SRC_BURST_RADIUS, 0.3, PSYS_PART_START_COLOR, <0.6, 0.75, 0.9>, PSYS_PART_END_COLOR, <0.6, 0.75, 0.9>, PSYS_PART_START_ALPHA, 0.5, PSYS_PART_END_ALPHA, 0.0, PSYS_PART_START_SCALE, <0.025, 0.12, 0.0>, PSYS_PART_MAX_AGE, 2.0, PSYS_SRC_BURST_RATE, 0.25, PSYS_SRC_BURST_PART_COUNT, 2, PSYS_SRC_BURST_SPEED_MIN, 0.0, PSYS_SRC_BURST_SPEED_MAX, 0.05, PSYS_SRC_ACCEL, <0.0, 0.0, -1.0> ]); } }