spacer.png, 0 kB
LIGHT SCRIPT COLOUR CHAINGE E-mail

lightScript.jpgJust put this script in an object to get a nice light effect.

you can add more colours in the light list.

if you touch the object it will stop chainging colour. 

 

 

 

 


///////////////////////////
/////gewoon een lichtscript////////
/////by flater baxter/////////////
//////////////////////////
integer time1 = 5;               // switch time light
vector kleur =<1, 1, 1>;        // light colour
float sterkte = 1.0;            // light  intensity
float radius =2 ;             //light radius
float falloff= 0.0 ;             // light falloff
 

integer aan = TRUE;
integer time2 =0;
integer togle;
list kleuren = [ <1,1,0>,<0.5,0,0.5>,<0,1,0.3>,<1,0,0>];
integer len;


default
{
    state_entry()
    {
       llSetTimerEvent(time1);
       len = llGetListLength(kleuren);
    }

    touch_start(integer total_number)
    {
      if(llDetectedKey(0)==llGetOwner()){
         
         if (togle){
         llSetTimerEvent(0);
         llSay(0,"togle colours off");
         }
         else { llSetTimerEvent(time1);
         llSay(0,"togle colours on");}
        }
        togle=!togle;
    }
    timer ()
    {
    time2 += 1;
   
        if (time2>=len) time2 = 0;
           
        llSetPrimitiveParams([PRIM_POINT_LIGHT, TRUE, (vector)llList2String(kleuren,time2), sterkte, radius, falloff]);       
                   
 
                   
                    }  
  
}
 

 


 

 

 
Comments
Add comments: LIGHT SCRIPT COLOUR CHAINGE

Enter your comment below:

(required)

(required)

Your email will not be displayed on the site; only to our administrator.





 

free lindens
 
spacer.png, 0 kB
   
free joomla templates Joomla tutorials joomla themes