Hi all, I'm slowly figuring out LSL so bear with me. I'm trying to create a HUD which does not use the viewer's built-in dialog. It is purley graphical. Basically, to make it easy, I have a HUD consisting of 2 prims (more in the future). When I click the parent prim, the child prim slides in from the left. The script works, but my problem is, when I click on the child prim, it slides back off the screen. I want to enclose a different function in the child prim. I don't want it to slide back off the screen as if I had clicked the parent prim. Any suggestions? Parent Script: integer myswitch;
default
{
state_entry()
{
myswitch=FALSE;
llSetText("Globe Lights", <1.0, 1.0, 1.0>, 1.0);
}
touch_start(integer total_number)
{
if(myswitch==FALSE)
{
//Turn HUD Buttons On
llMessageLinked(LINK_ALL_CHILDREN, 0, "start", NULL_KEY);
myswitch=TRUE;
}
else
{
//Turn HUD Buttons Off
llMessageLinked(LINK_ALL_CHILDREN, 0, "stop", NULL_KEY);
myswitch=FALSE;
}
}
} Child Script: myon_state()
{
llSetPos(llGetLocalPos() - <.3089, 0, 0>);
}
myoff_state()
{
llSetPos(llGetLocalPos() + <.3089, 0, 0>);
}
default
{
state_entry()
{
myoff_state();
}
link_message(integer sender_num, integer num, string str, key id)
{
if(str=="stop")
{
myoff_state();
}
if(str=="start")
{
myon_state();
}
}
} Any help would be appreciated, especially if there is a better way to do this! Thanks! - Spyder Scorbal