// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Tap-on lantern light // Not compiled or tested in-world // Setup: Put in a copy of a prim. Touch to switch its point light on or off. // Stop / restore: Disable the script and turn the point light off in Edit if needed. // Notes: This affects only the prim containing the script. Viewers render local lights differently. // License: see LICENSE in this distribution. // Original Incoprea example. integer isLit; default { state_entry() { isLit = FALSE; llSetLinkPrimitiveParamsFast(LINK_THIS, [PRIM_POINT_LIGHT, FALSE, <1.0, 0.72, 0.38>, 0.8, 8.0, 0.75]); } touch_start(integer count) { isLit = !isLit; llSetLinkPrimitiveParamsFast(LINK_THIS, [PRIM_POINT_LIGHT, isLit, <1.0, 0.72, 0.38>, 0.8, 8.0, 0.75]); } }