Difference between revisions of "User:Clarknova Helvetic/Set Param Widgets"
Jump to navigation
Jump to search
m (2 moar) |
(a bit moar) |
||
Line 40: | Line 40: | ||
== '''Set Hover Text''' == | == '''Set Hover Text''' == | ||
Change variables to suit and save. Script removes on next touch or in 5 minutes, whichever first. | |||
string text = ""; | string text = ""; | ||
vector color = <1.,1.,1.>; | vector color = <1.,1.,1.>; | ||
Line 49: | Line 49: | ||
{ | { | ||
llSetText(text,color,alpha); | llSetText(text,color,alpha); | ||
llSetTimerEvent(5.*60); | |||
} | |||
touch_start(integer n) | |||
{ | |||
llRemoveInventory(llGetScriptName()); | llRemoveInventory(llGetScriptName()); | ||
} | } | ||
timer() { llRemoveInventory(llGetScriptName()); } | |||
} | } | ||
Revision as of 18:01, 6 January 2008
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()); } }