All pastes #942357 Raw Edit

Stuff

public text v1 · immutable
·published 2008-03-14 13:56 UTC
rendered paste body
default
{
    
    integer refreshRate = 600;
    string srcURL = "http://icons.wunderground.com/data/640x480/2xus_rd.gif";  
    string dynamicID="";
    string contentType="image";
        
    state_entry()
    {
        refresh_texture();
        llSetTimerEvent(refreshRate); // create a "timer event" every 20 seconds.
    }
   
    timer()
    {
        refresh_texture();
    }
    
    touch_start(integer times)
    {
        refresh_texture();
    }
    
    void refresh_texture()
    {
        string URLTexture = osSetDynamicTextureURL(dynamicID, contentType ,srcURL , "", refreshRate );
    }
}