User:Clarknova Helvetic/Clear Param Widgets
Jump to navigation
Jump to search
These Scripts clear a single param. Drag 'n drop.
Just Die
Sometimes a prim jest don't die natural. <lsl>default {
state_entry() { llDie(); }
}</lsl>
Die in X Minutes
Enter minutes in whole numbers, then drop script into prim <lsl>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(); }
}</lsl>
Clear Hover Text
<lsl>default {
state_entry() { llSetText("",ZERO_VECTOR,0.); llRemoveInventory(llGetScriptName()); }
}</lsl>
Clear Particles
<lsl>default {
state_entry() { llParticleSystem([]); llRemoveInventory(llGetScriptName()); }
}</lsl>
Stop Sound
<lsl>default {
state_entry() { llStopSound(); llRemoveInventory(llGetScriptName()); }
}</lsl>
No Sit Target
<lsl>default {
state_entry() { llSitTarget(<0.,0.,0.>,ZERO_ROTATION); llRemoveInventory(llGetScriptName()); }
}</lsl>