// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Small celebration burst // Not compiled or tested in-world // Setup: Use a spare emitter prim with local Z upward. Touch once and wait for the burst to finish. // Stop / restore: The emitter clears after half a second; emitted particles fade after three seconds. Stop particle effect also clears it. // Notes: Default particles are abstract flecks. This replaces prior emitter settings and creates no inventory objects. // License: see LICENSE in this distribution. // Original Incoprea example. MIT. Not compiled or tested in-world. integer busy; default { touch_start(integer count) { if (llDetectedKey(0) != llGetOwner() || busy) return; busy = TRUE; 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.8, PSYS_PART_START_COLOR, <1.0, 0.5, 0.1>, PSYS_PART_END_COLOR, <0.4, 0.8, 1.0>, PSYS_PART_START_ALPHA, 0.9, PSYS_PART_END_ALPHA, 0.0, PSYS_PART_START_SCALE, <0.08, 0.04, 0.0>, PSYS_PART_END_SCALE, <0.04, 0.02, 0.0>, PSYS_PART_MAX_AGE, 3.0, PSYS_SRC_MAX_AGE, 0.4, PSYS_SRC_BURST_RATE, 0.1, PSYS_SRC_BURST_PART_COUNT, 4, PSYS_SRC_BURST_SPEED_MIN, 1.0, PSYS_SRC_BURST_SPEED_MAX, 2.0, PSYS_SRC_ACCEL, <0.0, 0.0, -1.5> ]); llSetTimerEvent(0.5); } timer() { llParticleSystem([]); llSetTimerEvent(0.0); busy = FALSE; } }