string ws;//vector value of wind
float windSpeed;//hold cast value of ws
vector pos;//hold vector of location
vector wind;//hold vector of wind in ms

default{    
    state_entry() {
       llSetTimerEvent(5);//timer setting of 5 seconds        
    }

   timer(){     
        pos = llGetPos();
        wind=llWind(pos);
        ws= (string)llVecMag(wind);
        windSpeed=(float)ws;        
        llSay(0, "Windspeed "+(string)windSpeed +" ms");
        llTargetOmega(<0,0,windSpeed/3>, 3, 3);      
    }
}

