Speedometer

float KPH_TO_MPH = 01.631;
 
default
{
    state_entry()
    {
        llSetTimerEvent(.2);
    }
 
    timer()
    {
        float speed = llVecMag(llGetVel())*60*60/1000;
        speed *= KPH_TO_MPH;
        if(speed > 130)
            speed = 130+llFrand(5.0);
        float ratio;
        if(speed < 20)
            ratio = speed/240;
        else
            ratio = (speed-10)/120;
        llRotateTexture((ratio*-290)*DEG_TO_RAD, ALL_SIDES);
    }
}

 

Flash Scratch to SL - Your Scripting Tool

Script ImageNeed to write a LSL script and don't know how to script?  I know I hate trying to get my head around LSLS when I an in a time crunch. So why not give Flash Scratch a try! Its a great tool for learning and scoding your own scripts for Second Life without having to pay someone to do it and without a crash course in LSL

A Huge thanks to John Bennet of ATLAS Institute at University of Colorado and Eric Rosenbaum at MIT for writing Scratch for SL to begin with.

Read more: Flash Scratch to SL - Your Scripting Tool