Tuesday, December 02, 2008
USERLOGIN PASSWORD Remember?
You are here » Learning Center ยป Forums

Openlife Forums

 Openlife Grid Forums
Minimize
 
  Openlife Forums  Scripting  LSL Help  Problem with URL to texture script
Previous Previous
 
Next Next
New Post 3/18/2008 12:28 PM
User is offline Osiris
61 posts
Openlife Apprentice




Problem with URL to texture script 
Modified By Osiris  on 3/18/2008 12:29:01 PM)

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()?

 
New Post 3/18/2008 12:45 PM
User is offline Pablo Pharmanaut
56 posts
Openlife Apprentice




Re: Problem with URL to texture script 

llListen is still not functioning properly in OLG.  Hopefully, there will be a patch soon to fix this.

 
Previous Previous
 
Next Next
  Openlife Forums  Scripting  LSL Help  Problem with URL to texture script
Privacy Statement | Terms Of UseAll Rights Reserved 2007,2008 3DX - Openlifegrid.com