It is simple. Move a box up 8m and change it's texture to clear, so it is out of the way and unseen. At the same time, change the texture on a couple of other objects, making them visible. This all works together to create a privacy type setting for photos, while removing a box that covers our basic studio so others don't just come in and use it when they please.
Once done with the studio, I move the box down 8m and change it's texture to solid black again, and change the other objects textures to clear.
All of this is done through simple private channel commands (/# command for state 1, /# second command for state 2... both commands use the same channel#)
It worked very well. And I saw that it was good and I rested... for about a minute.
Then I got the idea to make it typeless and created a simple two button HUD. Essentially "lock" and "unlock". Dropped llSay into each with the channel number and command for each state respectively.
Attached the HUD and voila! It was good and again I rested... for about a minute.
Now I have no rest. My problem? I need one other person to use the same HUD. I give my partner the HUD and it wont work. I pull hair, cuss, the whole 9 yards when I realize, also, after my partner tries and fails to make anything work in type commands or the HUD itself, I try again and the box wont move up or down anymore for me, typing or HUD controlled, but the other objects change textures for me by both types of command.
I relog. It works for me again. Phew. Again partner loads the HUD and tries and fail. I try again. Same issue as before. Box wont ove, other objects still change texture.
I need help. I just want two people to control the same setup with a HUD.
What am I doing wrong?
Thank you in advance for anything anyone can give.
Here is code for HUD, box, and "shades". The channel and commands have been changed to protect the innocent:
-----------
Box Script:
-----------
default
{
state_entry() {
llListen(16,"", NULL_KEY, ""
;}
listen(integer channel, string name, key id, string message) {
if (message == "close"
{// move down over studio
llSetPos(llGetPos()+<0,0,-8.09>
;// set the texture to logo
llSetTexture("shade",ALL_SIDES);
}
if (message == "open"
{// move up above studio
llSetPos(llGetPos()+<0,0,8.09>
;// set the texture to clear
llSetTexture("clear",ALL_SIDES);
}
}
}
-----------
"Shades" script
-----------
default
{
state_entry() {
llListen(16,"", NULL_KEY, ""
;}
listen(integer channel, string name, key id, string message) {
if (message == "close"
{// set the texture
llSetTexture("clear",ALL_SIDES);
}
if (message == "open"
{// set the texture
llSetTexture("shade",ALL_SIDES);
}
}
}
-----------
HUD Open Script
-----------
default
{
touch_start(integer total_number) {
// speak out loud!
llSay(16,"open"
;}
}
-----------
HUD Close Script
-----------
default
{
touch_start(integer total_number) {
// speak out loud!
llSay(16,"close"
;}
}
