Self-Destruction

From Second Life Wiki
Revision as of 04:00, 6 December 2023 by Gwyneth Llewelyn (talk | contribs) (→‎Script: Changed <source> with <syntaxhighlight>)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Change the number in llSetTimerEvent(30.0) to set the time, in seconds, that it will take for the object to disappear.

Script

// Davada Gallant (John Girard), WWIIOLers
// 30-second self destructor

default
{
    state_entry()
    {
        //upon creation, immediately start the timer
        llSetTimerEvent(30.0); // Change this to set time in seconds
    }

    //once the timer ticks off, kill the object
    timer()
    {
        llDie();   
    }
}