// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Own-object altitude band monitor // Not compiled or tested in-world // Setup: Set LOW/HIGH in meters above region datum. Owner-touch arms. // Stop / restore: Owner-touch to disarm before removing. No physical status or movement is changed. // Notes: No avatar surveillance or visitor history. Only this object’s band is retained; no position history or movement constraint. // License: see LICENSE in this distribution. // Original Incoprea. MIT. Not compiled or tested in-world. integer armed; float LOW=20.0; float HIGH=40.0; integer last=-1; default { touch_start(integer n) { if(llDetectedKey(0)!=llGetOwner())return; armed=!armed; if(armed) { last=-1; llSetTimerEvent(1.0); llOwnerSay("Monitor armed."); } else { llSetTimerEvent(0.0); llOwnerSay("Monitor off."); } } timer() { if(!armed)return; vector p=llGetPos(); integer band=1; if(p.zHIGH)band=2; if(band!=last) { last=band; llOwnerSay("Altitude band: "+llList2String(["low","middle","high"],band)); } } }