// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Count crossed cycle boundaries after a delay // Not compiled or tested in-world // Setup: Put in a spare owned prim. Set PREVIOUS<=NOW and positive PERIOD. Owner touch prints calculations only. // Stop / restore: Disable/remove. No prim motion or appearance is changed. // Notes: The interval is open at PREVIOUS and closed at NOW. A caller can cap catch-up work rather than running unbounded missed events. // License: see LICENSE in this distribution. // Original Incoprea. MIT. Motion planning only. float PREVIOUS=2.4; float NOW=9.2; float PERIOD=2.0; default { touch_start(integer detectedCount) { if(llDetectedKey(0)!=llGetOwner())return; if(PERIOD<=0.0||NOW