// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Export a vector as numeric JSON components // Not compiled or tested in-world // Setup: Edit DOCUMENT and the example settings, then touch as owner. Requires simulator support for LSL JSON functions. // Stop / restore: Remove or disable. JSON changes occur only in a local preview string. // Notes: The configured vector is not applied to any object. Consumers must agree on coordinate system and units separately. // License: see LICENSE in this distribution. // Original Incoprea example. MIT. vector POINT=<1.25,-2.0,3.5>; default { touch_start(integer touches) { if(llDetectedKey(0)!=llGetOwner())return; string result=llList2Json(JSON_ARRAY,[POINT.x,POINT.y,POINT.z]); llOwnerSay(result); } changed(integer flags) { if(flags & CHANGED_OWNER)llResetScript(); } }