User:Clarknova Helvetic/Set Param Widgets

From Second Life Wiki
< User:Clarknova Helvetic
Revision as of 13:37, 8 January 2008 by Clarknova Helvetic (talk | contribs) (<lsl> tags added)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

These Scripts are for setting a quick param.

Disposable Sit Target

Drag 'n drop to have something to sit on <lsl>default {

     state_entry()
     {   
         llSitTarget(<0,0,0.5>;
         llRemoveInventory(llGetScriptName());
     }

}</lsl>

Set Texture By Key

Enter key and side number, then drop script into prim <lsl>key texture = "" ; integer face = ALL_SIDES; // or individual side number

// Use CTRL ALT SHIFT T to get the number of the face you've selected. // Turn on admin options CTRL ALT V to get the key this way as well.

// Note that getting texure keys this way does not work in newer clients because // fasion designers are the worthless dregs of human culture and will be // shot dead in the former parking lots of thier studios which thier // forced labor will have converted into civic gardens after the revolution.

default
  {
    state_entry()
    {
      llSetTexture(texture,face);
      llRemoveInventory(llGetScriptName());
    }

}</lsl>

Set Hover Text

Enter text, color and alpha, then drop script into prim <lsl>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()); }

}</lsl>