User:Clarknova Helvetic/Set Param Widgets
< User:Clarknova Helvetic
Jump to navigation
Jump to search
Revision as of 17:27, 6 January 2008 by Clarknova Helvetic (talk | contribs) (→'''Die in X Minutes''': had it set to on_rez rather than state entry.)
These Scripts are for setting a quick param or doing something else to a prim.
Just Die
Sometimes a body 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
string text = ""; vector color = <1.,1.,1.>; float alpha = 1.0; default { state_entry() { llSetText(text,color,alpha); llRemoveInventory(llGetScriptName()); } }