// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Tabletop particle fountain // Not compiled or tested in-world // Setup: Use a spare emitter prim with local Z pointing upward. Owner-touch toggles. Uses the default particle texture and does not require a water asset. // Stop / restore: Touch to clear the emitter before removing. Stop particle effect can clear a stranded emitter. // Notes: Viewer-only droplets do not collide or make water. Uses about ten particles per second. Prior particle settings are not saved. // 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_INTERP_SCALE_MASK, PSYS_SRC_PATTERN, PSYS_SRC_PATTERN_ANGLE_CONE, PSYS_SRC_ANGLE_BEGIN, 0.0, PSYS_SRC_ANGLE_END, 0.18, PSYS_PART_START_COLOR, <0.5, 0.8, 1.0>, PSYS_PART_END_COLOR, <0.8, 0.95, 1.0>, PSYS_PART_START_ALPHA, 0.7, PSYS_PART_END_ALPHA, 0.0, PSYS_PART_START_SCALE, <0.06, 0.06, 0.0>, PSYS_PART_END_SCALE, <0.02, 0.02, 0.0>, PSYS_PART_MAX_AGE, 1.8, PSYS_SRC_BURST_RATE, 0.2, PSYS_SRC_BURST_PART_COUNT, 2, PSYS_SRC_BURST_SPEED_MIN, 2.0, PSYS_SRC_BURST_SPEED_MAX, 2.5, PSYS_SRC_ACCEL, <0.0, 0.0, -3.0> ]); } }