Jump to content

Dayvana Mocha

Resident
  • Content Count

    2
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Dayvana Mocha

  • Rank
    Newbie
  1. Thank you very much for your answer. But the root prim is assigned to the ACS Vehicle Script System. =/ Here are the scripts I'm using: // Remote Script integer s; integer channel_control = 4000; key owner; shoutit() { if(s) { llShout(channel_control, "LAMPOFF"); s=!s; }else{ s=!s; llShout(channel_control, "LAMPON"); } } default { state_entry() { owner = llGetOwner(); } touch_start(integer num_detected) { if(llDetectedKey(0) == owner) { shoutit(); } else if(llDetectedKey(0) != owner) { llSay(0,"You are not the Owner!"); } } on_rez(integer Dae) { llResetScript(); } } // light script float intensity = 0.5; float radius = 3.0; float falloff = 0.2; float glow = 0.2; float alpha = 1.0; integer light_s = TRUE; integer channel_control = 4000; vector lightcolor = <1.000, 0.863, 0.000>; switchit() { float thisglow = 0.0; light_s = !light_s; if (light_s) { thisglow = glow; } llSetPrimitiveParams([ PRIM_POINT_LIGHT, light_s, lightcolor, intensity, radius, falloff, PRIM_FULLBRIGHT, 0, light_s, PRIM_GLOW, 0, thisglow ]); } default { state_entry() { llListen(4000, "", NULL_KEY, "" ); } on_rez(integer num) { llResetScript(); } listen(integer number, string name, key id, string message) { if(message=="LAMPON") { switchit(); } if(message=="LAMPOFF") { switchit(); } } }
  2. Hello community, I recently built a holiday light with 5 lights on a rope for my boat. (See image). I'm pretty new into scripting, but I made those light shine by using a remote script. The sunshade is the switch. But this is not the way I want it. I want to make all lights shine when I click on any of those five lights. Obviously putting the remote script and the light script into every single lamp does not work. I tried it already. How can I solve this? Best, Dayvana
×
×
  • Create New...