Chat channel

From Second Life Wiki
Revision as of 21:21, 18 June 2007 by Lee Ponzu (talk | contribs) (New page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

In Second Life, resident chat can be heard by all nearby because it all goes over an open channel, which has the number 0.

Often, in scripts, different objects need to exchange information or coordinate their behavior. All the scripts that are listening on a channel will hear whatever is said on that channel, up to various distance restrictions. See llListen, llSay, and llRegionSay for more details.

To add more resilience to you protocol, in can be a good idea to match some other criteria before trying to parse a message. Don't expect that others will avoid using your channel simply you are. For instance, use a unique starting header on your message and check to see if it exists. This way multiple devices can use the same channels.