Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llSetPrimitiveParams Problem

Rizado DaSilva
Merchant
Join date: 12 May 2005
Posts: 30
07-03-2008 09:22
Ok, I can't find an answer to this anywhere so... I have a HUD I am working on and the buttons have the following (or similar) script;

From: someone
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]);
}
}


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.
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
07-03-2008 10:54
Full bright doesn't work on a HUD. HUDs are always fully lit (they don't care where the sun and local lighting are in-world). You might want to change the intensity of the prim's actual color instead.
Rizado DaSilva
Merchant
Join date: 12 May 2005
Posts: 30
07-03-2008 11:35
From: Hewee Zetkin
Full bright doesn't work on a HUD. HUDs are always fully lit (they don't care where the sun and local lighting are in-world). You might want to change the intensity of the prim's actual color instead.


Ah ha, makes perfect sense. Ok, I have a work around now, thanks.