default
{
link_message(integer sender, integer number, string message, key ID)
{
if (message == "Boff"
{
llSetPrimitiveParams([PRIM_FULLBRIGHT,ALL_SIDES,FALSE]);
}
}
touch_start(integer total_number)
{
llMessageLinked(LINK_ROOT, 0, "on", llDetectedKey(0));
llMessageLinked(LINK_SET, 0, "Bon", llDetectedKey(0));
llSetPrimitiveParams([PRIM_FULLBRIGHT,ALL_SIDES,TRUE]);
}
}
{
link_message(integer sender, integer number, string message, key ID)
{
if (message == "Boff"

{
llSetPrimitiveParams([PRIM_FULLBRIGHT,ALL_SIDES,FALSE]);
}
}
touch_start(integer total_number)
{
llMessageLinked(LINK_ROOT, 0, "on", llDetectedKey(0));
llMessageLinked(LINK_SET, 0, "Bon", llDetectedKey(0));
llSetPrimitiveParams([PRIM_FULLBRIGHT,ALL_SIDES,TRUE]);
}
}
This would effectively send the ON command to my main script and light up the ON button and make sure the OFF button is not lit.
And it works as intended when on the floor or if attached anywhere on the body, just not as a HUD.
The commands are still issued via llMessageLinked but the buttons will not light or darken (all stay the same) as if PRIM_FULLBRIGHT doesn't work in a HUD.
Any insight would be much appreciated.