Difference between revisions of "User:Clarknova Helvetic/Set Param Widgets"

From Second Life Wiki
Jump to navigation Jump to search
(a bit moar)
(Removing all content from page)
Line 1: Line 1:
'''These Scripts are for setting a quick param or doing something else to a prim.'''


== '''Just Die''' ==
Sometimes a prim jest don't die natural.
    default
    {
        state_entry()
        {
            llDie();
        }
    }
== '''Die in X Minutes''' ==
    integer minutes = 20;  // Change this to the number of minutes for the object to live.
   
    default
    {
        state_entry() { llSetTimerEvent((float)minutes*60.); }
        timer()
        {
            llInstantMessage(llGetOwner(),(string)llRound(minutes) + " minutes expired.  " + llGetObjectName() + " deleted.");
            llDie();
        }
       
    }
== '''Disposable Sit Target''' ==
    default
    {
        state_entry()
        { 
            llSitTarget(<0,0,0.5>;
            llRemoveInventory(llGetScriptName());
        }
    }
== '''Set Hover Text''' ==
Change variables to suit and save.  Script removes on next touch or in 5 minutes, whichever first.
    string  text =  "";
    vector  color = <1.,1.,1.>;
    float  alpha = 1.0;
    default
    {
        state_entry()
        {
            llSetText(text,color,alpha);
            llSetTimerEvent(5.*60);
        }
        touch_start(integer n)
        {
            llRemoveInventory(llGetScriptName());
        }
        timer() { llRemoveInventory(llGetScriptName()); }
    }
== '''Halt Rotation''' ==
    default
    {
        state_entry()
        {
                llTargetOmega(ZERO_VECTOR, 0, 0);
                llRemoveInventory(llGetScriptName());
        }
    }
== '''Clear Particles''' ==
    default
    {
        state_entry()
        {
                llParticleSystem([]);
                llRemoveInventory(llGetScriptName());
        }
    }

Revision as of 14:58, 7 January 2008