// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Preview a root-local placement offset // Not compiled or tested in-world // Setup: Set OFFSET and use a rezzed build. Touch as owner. // Stop / restore: Remove or disable. This planner does not apply the reported changes. // Notes: Reports the target location but does not rez or move anything. Uses the root orientation and position; object scale does not scale the offset. // License: see LICENSE in this distribution. // Original Incoprea example. MIT. vector OFFSET=<2.0,0.0,1.0>; default { touch_start(integer touches) { if(llDetectedKey(0)!=llGetOwner())return; if(llGetAttached()) { llOwnerSay("Use a rezzed build."); return; } vector target=llGetRootPosition()+OFFSET*llGetRootRotation(); llOwnerSay("Proposed region position: "+(string)target); } changed(integer flags) { if(flags & CHANGED_OWNER)llResetScript(); } }