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

Openlife Forums

 Openlife Grid Forums
Minimize
 
  Openlife Forums  Scripting  LSL Discussion  What's the deal with llListen?
Previous Previous
 
Next Next
New Post 3/20/2008 12:28 AM
User is offline Pablo Pharmanaut
56 posts
Openlife Apprentice




What's the deal with llListen? 

I have repeatedly written in these forums that llListen is not working properly.  Am I the only one having problems with this function?  A brief test across several regions using this script had mixed results.  Some regions returned color change quickly.  Some regions had long delay in chat.  In Chiller, I get no color change at all and long delay in chat.   This is an improvement over the past when the script would crash my viewer altogether.  Please  reply if you have had similar experiences or not.

 

 

//listen switch

default
{
   
state_entry()
    {
        llListen(0, "", NULL_KEY, ""); // start listening
    }
 
    listen(integer channel, string name, key id, string message)
    {
        if (message == "off") {
            llSetColor(<0,0,0>,ALL_SIDES); 
        }
        else {
            if (message == "on")
                llSetColor(<1,1,1>,ALL_SIDES);
        }
    }
}
 

 

 
Previous Previous
 
Next Next
  Openlife Forums  Scripting  LSL Discussion  What's the deal with llListen?
Privacy Statement | Terms Of UseAll Rights Reserved 2007,2008 3DX - Openlifegrid.com