// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Reversible child nudge // Not compiled or tested in-world // Setup: Put in a nonphysical child. Edit OFFSET; owner-touch applies and restores. Keep within link distance limits. // Stop / restore: Owner-touch again to restore the startup snapshot before removing or resetting. A reset while previewing loses the original snapshot. // Notes: Use a small nonphysical rezzed build with room around it. This changes real geometry, not just a viewer effect. Restore before reset, relink, or removal; a script-memory snapshot is not a permanent backup. // License: see LICENSE in this distribution. // Original Incoprea. MIT. Not compiled or tested in-world. integer preview; list saved; vector OFFSET=<0.0,0.0,0.25>; default { state_entry() { saved = llGetLinkPrimitiveParams(LINK_THIS, [PRIM_POS_LOCAL]); } touch_start(integer count) { if (llDetectedKey(0) != llGetOwner()) return; if(llGetLinkNumber()<2||llGetStatus(STATUS_PHYSICS))return; preview = !preview; if (preview) { llSetLinkPrimitiveParamsFast(LINK_THIS,[PRIM_POS_LOCAL,llList2Vector(saved,0)+OFFSET]); } else { llSetLinkPrimitiveParamsFast(LINK_THIS,[PRIM_POS_LOCAL]+saved); llOwnerSay("Original setting restored."); } } }