// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Stop linked rotation // Not compiled or tested in-world // Setup: For nonphysical builds. Disable other scripts that restart rotation first. Place this in any prim of the affected object, save, and confirm Running is checked. // Stop / restore: This runs once. Remove it after confirming the rotation has stopped. // Notes: Does not stop a timer moving prim positions, keyframed motion, or physical momentum. Seated avatars are excluded. If server settings are cleared but the viewer still displays spin, refresh the view or relog. // License: see LICENSE in this distribution. // Original Incoprea example. MIT. Nonphysical rezzed object only. default { state_entry() { integer count = llGetObjectPrimCount(llGetKey()); if (count <= 1) llSetLinkPrimitiveParamsFast(LINK_THIS, [PRIM_OMEGA, ZERO_VECTOR, 0.0, 0.0]); else { integer link; for (link = 1; link <= count; ++link) llSetLinkPrimitiveParamsFast(link, [PRIM_OMEGA, ZERO_VECTOR, 0.0, 0.0]); } } }