// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Surface coordinate probe // Not compiled or tested in-world // Setup: Place in a build and touch its visible surface as owner. // Stop / restore: Remove or disable the script. It does not change the build. // Notes: ST is face-space; UV reflects texture mapping. Unsupported touches can return invalid coordinates. This only reports the owner’s deliberate touch. // License: see LICENSE in this distribution. // Original Incoprea example. MIT. default { touch_start(integer count) { if (llDetectedKey(0) != llGetOwner()) return; integer face = llDetectedTouchFace(0); if (face == TOUCH_INVALID_FACE) { llOwnerSay("Surface data unavailable."); return; } llOwnerSay("Face " + (string)face + " / link " + (string)llDetectedLinkNumber(0)); llOwnerSay("ST: " + (string)llDetectedTouchST(0)); llOwnerSay("UV: " + (string)llDetectedTouchUV(0)); } changed(integer flags) { if (flags & CHANGED_OWNER) llResetScript(); } }