Hello SL
I made a script that turns on and off the light, but somehow its only me who are able to see that light. maybe someone has an solution for that?
Others are able to see the prim when i make it visible but they dont see the light that lights up
This is the code for the prim.. I turn it on and off from a HUD
integer on = FALSE;
show()
{
llSetPrimitiveParams([ PRIM_COLOR, ALL_SIDES, <0.599, 0.194, 0.800>, 1,
PRIM_GLOW, ALL_SIDES, 0.0,
PRIM_POINT_LIGHT,TRUE, <0.599, 0.194, 0.800>, 1.0, 15.0, 0.0] );
}
off()
{
llSetPrimitiveParams([ PRIM_COLOR, ALL_SIDES, <0,0,0>, 0.0,
PRIM_GLOW, ALL_SIDES, 0.0,
PRIM_POINT_LIGHT,FALSE, <0.599, 0.194, 0.800>, 1.0, 10.0, 0.75 ] );
}
default
{
state_entry()
{
llListen(22,"Light HUD",NULL_KEY,"on");
llListen(22,"Light HUD",NULL_KEY,"off");
llSetAlpha(1,ALL_SIDES);
}
listen(integer chan, string what, key who, string msg)
{
if(llGetOwnerKey(who) == llGetOwner())
{
if(msg == "on")
{
off();
}
else if(msg == "off")
{
show();
}
}
}