Rhino246 Posted March 21, 2018 Share Posted March 21, 2018 Hello, I am wondering how does aeros production (HUD<->prims) or other separate objects communicate. I red that it works via linked-messages. But in wiki it writes that Linkedmessage function can communicate only in the same prim between scripts. Therefore, if there is 2 separate object, does the only solution is e.mail and http? Thank you ^^ Link to comment Share on other sites More sharing options...
Callum Meriman Posted March 21, 2018 Share Posted March 21, 2018 llRegionSayTo() is the way I do it - once I know the keys http://wiki.secondlife.com/wiki/LlRegionSayTo Others likely have better ways 1 Link to comment Share on other sites More sharing options...
Wulfie Reanimator Posted March 21, 2018 Share Posted March 21, 2018 There are many different functions for sending messages, like llSay/Whisper/Shout, llRegionSay, and llRegionSayTo. http://wiki.secondlife.com/wiki/Category:LSL_Communications You just need a listen event in the object you want to communicate with. http://wiki.secondlife.com/wiki/Listen 1 Link to comment Share on other sites More sharing options...
Qie Niangao Posted March 21, 2018 Share Posted March 21, 2018 2 hours ago, Rhino246 said: Hello, I am wondering how does aeros production (HUD<->prims) or other separate objects communicate. I red that it works via linked-messages. ... What you may be describing here is an API that uses link-messaging between a licensed relay script and other user-supplied scripts in the same object. The relay script, however, would communicate with the HUD using different, object-to-object communication. If either the HUD or the other object know the avatar to which the other one is attached (perhaps they're both attached to the same avatar), then they can start communicating by sending llRegionSayTo() that avatar's UUID, and then all scripts attached to that avatar will get sent the message, and if they're listening on the right channel, receive it in their listen() handlers. Because it's most efficient to only send to the intended recipient(s), the scripts may narrow their llListen()s to just the sender's UUID, and the sender only llRegionSayTo() the specific recipient's UUID, once communications are established. There are a number of other ways for objects to communicate, useful for different circumstances; the two you mentioned, email and http (and shared use of an Experience's persistent store) are particularly relevant when communicating between distant sims. 2 Link to comment Share on other sites More sharing options...
Berksey Posted March 21, 2018 Share Posted March 21, 2018 (edited) Yeah, linked messages are for communicating with scripts within the same object, and llSay, llWhisper, llRegionSay, and llRegionSayTo are for talking to unlinked or separate objects. I tend to vary the methods I use, depending on what the overall effect is that I'm trying to create... For example, if I want it to be a private, hidden interaction between one single instance of an object and a separate object owned by another person, say, a person's combat meter recording a hit, I'd get and use their key, and use llRegionSayTo in order to speak only to that one person's combat meter. On the other hand, if it's a grenade, and I want it to have an area of effect, I tell it to use llWhisper on the secret channel, and everyone within ten meters who has the combat meter on will be affected. I think it's best to learn every way, and not just stop when you find "the thing that works", because then no matter what you're trying to do, you'll have a solution. Edited March 21, 2018 by Berksey 1 Link to comment Share on other sites More sharing options...
Lucia Nightfire Posted March 21, 2018 Share Posted March 21, 2018 11 hours ago, Rhino246 said: Hello, I am wondering how does aeros production (HUD<->prims) or other separate objects communicate. I red that it works via linked-messages. But in wiki it writes that Linkedmessage function can communicate only in the same prim between scripts. Therefore, if there is 2 separate object, does the only solution is e.mail and http? Thank you ^^ Aeros offers an "API Partner Script" if you're specifically needing to make your application work with it. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now