Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Communications Between Objects

Jaser Newell
Registered User
Join date: 12 Sep 2006
Posts: 23
09-22-2009 10:45
I was wondering what the best way for scripts in different objects to communicate to each other. I currently use llListen() and llSay() in my scripts for this, making a designated channel for them to talk to each other. Are there any better ways of doing this or is the way I am using the best way?
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
09-22-2009 10:52
If they're in different objects, then a listen and llSay() or llRegionSay() is best. I suspect llRegionSay() might be more efficient, since it doesn't need to perform a distance check or be passed to neighboring sims.
_____________________
Argent Stonecutter - http://globalcausalityviolation.blogspot.com/

"And now I'm going to show you something really cool."

Skyhook Station - http://xrl.us/skyhook23
Coonspiracy Store - http://xrl.us/coonstore
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
09-22-2009 11:44
It depends. llSay is fine if the objects are within chat distance. If they could be farther apart but in the same sim, llRegionSay is a better choice. If they might somtimes be in different sims, you could use llEmail or some of the http options. If the objects are linked, it can be wiser to use llMessageLinked.
_____________________
It's hard to tell gender from names around here but if you care, Rolig = she. And I exist only in SL, so don't ask.... ;)

Look for my work in XStreetSL at
Lightwave Valkyrie
Registered User
Join date: 30 Jan 2004
Posts: 666
09-22-2009 13:19
i have also used llRemoteLoadScriptPin to send a script containing my data
_____________________
L$ is the root of all evil
videos work! thanks SL :)
Jaser Newell
Registered User
Join date: 12 Sep 2006
Posts: 23
09-22-2009 14:28
I'd like to thank you all for the help. For most of my projects llRegionSay will probably work best. I have an upcoming project where llRemoteScriptPin might be useful. I don't know much about the HTTP options or how to use them properly. That is something I still have to learn.
Opensource Obscure
Hide UI
Join date: 5 Jun 2008
Posts: 115
10-09-2009 04:08
does anyone have any link / pointer / tutorial about how to use recent HTTP functions for between-objects communication? thanks in advance.
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
10-09-2009 06:39
Tryhttp://wiki.secondlife.com/wiki/Category:LSL_HTTP/Client and http://wiki.secondlife.com/wiki/Category:LSL_HTTP/Server for two different perspectives.
_____________________
It's hard to tell gender from names around here but if you care, Rolig = she. And I exist only in SL, so don't ask.... ;)

Look for my work in XStreetSL at