// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Touch XY control pad // Not compiled or tested in-world // Setup: Put in a flat control-panel prim and set FACE. Owner-touch reports X/Y in owner chat and sends one link message with code 7402 and a vector string. // Stop / restore: Remove or disable. No object property is changed. // Notes: ST coordinates describe the touched surface, not texture transforms. Receivers are optional; this script works as an inspection pad by itself and does not send region chat. // License: see LICENSE in this distribution. // Original Incoprea example. MIT. Not compiled or tested in-world. integer FACE = 0; default { touch_start(integer count) { if (llDetectedKey(0) != llGetOwner() || llDetectedTouchFace(0) != FACE) return; vector st = llDetectedTouchST(0); if (st.x < 0.0 || st.x > 1.0 || st.y < 0.0 || st.y > 1.0) return; vector value = ; llOwnerSay("XY: " + (string)value); llMessageLinked(LINK_ALL_OTHERS, 7402, (string)value, NULL_KEY); } }