// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // One-shot sprite-sheet cue // Not compiled or tested in-world // Setup: Set FACE and apply a 2×2 sheet. Owner-touch starts a two-second one-shot animation. // Stop / restore: Wait three seconds for explicit animation cleanup and UV restoration before removal. // Notes: No LOOP flag is used. The timer explicitly disables the stored animation after the cue; it cannot restore a previously configured animation. // License: see LICENSE in this distribution. // Original Incoprea. MIT. Not compiled or tested in-world. integer FACE=0; integer busy; list saved; default { state_entry() { saved=llGetLinkPrimitiveParams(LINK_THIS,[PRIM_TEXTURE,FACE]); } touch_start(integer n) { if(llDetectedKey(0)!=llGetOwner()||busy)return; busy=TRUE; llSetTextureAnim(ANIM_ON,FACE,2,2,0.0,4.0,2.0); llSetTimerEvent(3.0); } timer() { llSetTimerEvent(0.0); llSetTextureAnim(FALSE,FACE,0,0,0.0,0.0,1.0); llSetLinkPrimitiveParamsFast(LINK_THIS,[PRIM_TEXTURE,FACE]+saved); busy=FALSE; } }