// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Gauge touch controller // Not compiled or tested in-world // Setup: Name the root gauge_controller, put this script there and set FACE. Pair with Linked gauge needle receiver in a child. Owner-touch a flat face. // Stop / restore: Remove or disable. This sender changes no prim properties; disarm the paired receiver separately. // Notes: Use a small nonphysical rezzed build with clear space. Actual prim transforms change. Original poses live only in script memory. Do not change physical status or link topology during use. This controller alone only emits local link messages and reports the value. The receiver must be separately armed. // License: see LICENSE in this distribution. // Original Incoprea. MIT. Not compiled or tested in-world. integer FACE=0; default { touch_start(integer n) { if(llDetectedKey(0)!=llGetOwner()||llGetLinkNumber()>1||llDetectedTouchFace(0)!=FACE)return; vector st=llDetectedTouchST(0); if(st.x<0.0||st.x>1.0)return; llMessageLinked(LINK_ALL_CHILDREN,7860,(string)st.x,NULL_KEY); llOwnerSay("Gauge value "+(string)st.x); } }