// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Number a grid in a continuous snake // Not compiled or tested in-world // Setup: Use a spare owned prim. Set COLUMNS, ROWS and cell spacing; total cells at most16. Owner touch prints sample coordinates. // Stop / restore: Remove/disable. Nothing is rezzed or moved. // Notes: Useful for scan paths and ordered installations; output stays in one plane and includes cell centers. // License: see LICENSE in this distribution. // Original Incoprea. MIT. Planning only. integer COLUMNS=4; integer ROWS=3; float SPACING=1.5; default { touch_start(integer detectedCount) { if(llDetectedKey(0)!=llGetOwner())return; if(COLUMNS<1||ROWS<1||COLUMNS*ROWS>16||SPACING<=0.0) { llOwnerSay("Use1..16 total cells and positive spacing."); return; } integer i; for(i=0;i); } } }