// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Own-object settling cue // Not compiled or tested in-world // Setup: Owner-touch arms, then use the object’s existing movement mechanism. // Stop / restore: Owner-touch to disarm before removing. No physical status or movement is changed. // Notes: No avatar surveillance or visitor history. Position jumps may not produce useful velocity. A new movement resets the settling interval. // License: see LICENSE in this distribution. // Original Incoprea. MIT. Not compiled or tested in-world. integer armed; float since; integer quiet; integer reported; default { touch_start(integer n) { if(llDetectedKey(0)!=llGetOwner())return; armed=!armed; if(armed) { since=llGetTime(); quiet=FALSE; reported=FALSE; llSetTimerEvent(1.0); llOwnerSay("Monitor armed."); } else { llSetTimerEvent(0.0); llOwnerSay("Monitor off."); } } timer() { if(!armed)return; if(llVecMag(llGetVel())<0.03) { if(!quiet) { quiet=TRUE; since=llGetTime(); } if(!reported&&llGetTime()-since>=5.0) { reported=TRUE; llOwnerSay("Nearly still for five seconds."); } } else { quiet=FALSE; reported=FALSE; } } }