Jump to content

Help for other to see my lights


Sweet2770
 Share

You are about to reply to a thread that has been inactive for 213 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

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();
            }
        }
    }
    

Edited by Sweet2770
Link to comment
Share on other sites

Lights being on is a prim property, there's no way to choose who sees the property or not.

Two things come to mind: is your light source an attachment? There is an option to turn off seeing lights in avatar attachments specifically, and the other people in question may be using that setting.

Alternative: are those people running such low graphics settings that they can't see the light because of that? There's a checkbox in graphics preferences to disable lights in general, and additionally without advanced lighting enabled, there is a very low limit of lights that are rendered (6, if I recall correctly), so other lights in the scene might block yours from showing.

Edited by Frionil Fang
  • Like 2
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 213 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...