Sweet2770 Posted October 4, 2023 Share Posted October 4, 2023 (edited) 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 October 4, 2023 by Sweet2770 Link to comment Share on other sites More sharing options...
Frionil Fang Posted October 4, 2023 Share Posted October 4, 2023 (edited) 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 October 4, 2023 by Frionil Fang 2 Link to comment Share on other sites More sharing options...
Sweet2770 Posted October 4, 2023 Author Share Posted October 4, 2023 Yea... I found out, Its cus people has to check the "local light" box on.... now it works perfectly... I couldnt find an issue with the code or what I did wrong Thanks for your reply Frionil Fang 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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