Im trying to test the following code:
string srcURL = "http://www.hasselblad.com/media/07505e46-3c4e-4b55-bee5-2242f4106ab4-TheGlobe.jpg";
string dynamicID="";
integer refreshRate = 600;
string contentType="image";
default
{
touch_start(integer total_number)
{
llListen(0,"",NULL_KEY,"");
llSay( 0,"Starting Texture Test");
}
listen(integer channel, string name, key id, string message)
{
llSay(0,message);
if (channel == 0)
{
llSay(0,"Texture set to "+message);
srcURL = message;
}
string URLTexture=osSetDynamicTextureURL(dynamicID, contentType ,message , "", refreshRate );
llSetTexture(URLTexture, ALL_SIDES);
llSay(0,"Removing Listener");
}
}
Its supposed to set the texture of the prim to whatever url to a texture someone types in...
There might be something wrong with listen()?