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

From Second Life Wiki
Jump to navigation Jump to search
(content added)
 
Line 27: Line 27:


== '''Clear Hover Text''' ==
== '''Clear Hover Text''' ==
default
    default
{
    state_entry()
     {
     {
         llSetText("",ZERO_VECTOR,0.);
         state_entry()
        llRemoveInventory(llGetScriptName());
        {
            llSetText("",ZERO_VECTOR,0.);
            llRemoveInventory(llGetScriptName());
        }
     }
     }
}


== '''Clear Particles''' ==
== '''Clear Particles''' ==

Revision as of 16:08, 7 January 2008

These Scripts clear a single param. Drag 'n drop.

Just Die

Sometimes a prim jest don't die natural.

   default
   {
       state_entry()
       {
           llDie();
       }
   }

Die in X Minutes

Enter minutes in whole numbers, then drop script into prim

   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();
       }
       
   }

Clear Hover Text

   default
   {
       state_entry()
       {
           llSetText("",ZERO_VECTOR,0.);
           llRemoveInventory(llGetScriptName());
       }
   }

Clear Particles

   default
   {
       state_entry()
       {
               llParticleSystem([]);
               llRemoveInventory(llGetScriptName());
       }
   }

Stop Sound

   default
   {
       state_entry()
       {
           llStopSound();
           llRemoveInventory(llGetScriptName());
       }
   }