BlueXBeta Posted November 3, 2019 Share Posted November 3, 2019 Hi I wanted to share an observation with my script. It's a classic HUD situation with one object attached to the avatar and the other attached as hud. I am using llRegionSayTo to communicate between the two. Now during my attempts to streamline the code I noticed that my hud repeats the command it receives via llRegionSayTo exactly twice. The command is sent only once. Is that normal, or to be expected? bXb Link to comment Share on other sites More sharing options...
Wulfie Reanimator Posted November 3, 2019 Share Posted November 3, 2019 (edited) What channel are you sending it on? 0 is displayed to the avatar if the target is an attachment. Edited November 3, 2019 by Wulfie Reanimator Link to comment Share on other sites More sharing options...
BlueXBeta Posted November 3, 2019 Author Share Posted November 3, 2019 It is sent to a special channel at -7xxx range I see it only because of my llOwnerSay debug polling. So it wouldn't be a known behavior ? bXb Link to comment Share on other sites More sharing options...
Wulfie Reanimator Posted November 3, 2019 Share Posted November 3, 2019 Just now, BlueXBeta said: It is sent to a special channel at -7xxx range I see it only because of my llOwnerSay debug polling. So it wouldn't be a known behavior ? If you're getting the debug message twice, then there is a problem with the logic of your code. It's hard to say anything beyond that unless you want to show the script. Link to comment Share on other sites More sharing options...
Rolig Loon Posted November 3, 2019 Share Posted November 3, 2019 In normal practice, you would communicate with an attachment by directing llRegionSayTo to whoever is wearing an attachment, so llRegionSayTo( llGetOwner(), -1234567, "HELLO" ); In this case, both of your objects are attachments, so you have scripted things so that you are talking and listening to yourself. That's not an unusual situation, but it does open the possibility of echoing, if you have debug statements in both objects repeating what they hear. As Wulfie says, we can't guess much beyond that without seeing the scripts themselves, but you ought to be able to narrow down which attachment is saying what, and then cut down the chatter. Link to comment Share on other sites More sharing options...
BlueXBeta Posted November 3, 2019 Author Share Posted November 3, 2019 interesting. I will dig into the code some more. thanks for the feedback bXb Link to comment Share on other sites More sharing options...
Erwin Solo Posted November 3, 2019 Share Posted November 3, 2019 You've probably already done so, but if not, then re-reading the caveats on llRegionSayTo() might help. http://wiki.secondlife.com/wiki/LlRegionSayTo 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