// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Breathing lantern // Not compiled or tested in-world // Setup: Use a copy of a prim. Starts automatically and changes glow on every face, four times per second. // Stop / restore: Disable or remove the script, then set Glow to 0 in the prim’s texture/material controls. // Notes: Glow is a viewer effect, not a point light. Original glow values are not saved. // License: see LICENSE in this distribution. // Original Incoprea example. MIT. default { state_entry() { llResetTime(); llSetTimerEvent(0.25); } timer() { float glow = 0.03 + 0.025 * llSin(llGetTime() * 0.7); llSetLinkPrimitiveParamsFast(LINK_THIS, [PRIM_GLOW, ALL_SIDES, glow]); } }