Jump to content

Onamiko

Resident
  • Posts

    5
  • Joined

  • Last visited

Reputation

0 Neutral

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Alright, i figured it out! Thank you everyone!
  2. Thanks for the suggestion. I am new to this and not sure how to keep a globar variable and then add it to the llSetPrimitiveParams, can i have an example please?
  3. Thanks everyone for the reply. Alright, here is why i don't want it to change the color: I have a kayboard i am working on. It has 2 prims, the main one and the LED prim underneath the buttons. In my script, the owner can set the color of the LED prim and the specular map of the main prim to whatever color he desires, for example, Yellow, Blue Or Green. So that both the LED prim and Specular Map colors are the same. Examples: There is a an option in the script that "Turns Off" the keyboard, which basically makes the LED prim transparent and the Specular map of the main prim to have no glossiness, which makes it sorta uncolored. What i want is when the owner "Turns On" the keyboard once again, it will have the same colors he selected before. In this case, same red color for both the LED prim and Specular Map. But the issues that i originally stated prevents this from happening, since i need to use the specific color parameter. And thus it results into this: Question: If there is no way to ignore the color parameter in llSetPrimitiveParams, then is there a way to restore the previously selected parameter based on the one the user chose before turning off the keyboard? Thanks!
  4. Hi, i am new to scripting, and wonder if there is a way to ignore a specific parameter, for example: llSetPrimitiveParams([ PRIM_SPECULAR, ALL_SIDES, "e60ef3a0-06cb-71e6-7af7-a2b3cd6f710e", <1.0, 1.0, 0.0>, <0.0, 0.0, 0.0>, 0.0, <0, 0, 0> , 1, 50]); The parameter colored in red is responsible for coloring, is there a way to ignore it so the script does not change the color? Thanks!
  5. Greetings there. I am making a gaming keyboard with led lights and stuff. It's main prim has a specular map which highlights some buttons. I figured out how to change their color with: llSetPrimitiveParams([ PRIM_SPECULAR, ALL_SIDES, "e60ef3a0-06cb-71e6-7af7-a2b3cd6f710e", <1.0, 1.0, 0.0>, <0.0, 0.0, 0.0>, 0.0, <0.000, 0.455, 0.851>, 1, 50]); - basically sets the specular map to blue. Thing is, the keyboard script has multiple coloring options, yellow, green, purple, etc etc. Also it has a Turn Off option, which basically turns off the specular map's glossiness making the buttons have no color highlighting. llSetPrimitiveParams([ PRIM_SPECULAR, ALL_SIDES, "e60ef3a0-06cb-71e6-7af7-a2b3cd6f710e", <1.0, 1.0, 0.0>, <0.0, 0.0, 0.0>, 0.0, "", 0, 50]); Problem is, when i turn the keyboard back on i want it to keep the same selected color as before. Is there a way to ignore the coloring parameter in PRIM_SPECULAR? Thanks! I'm failry new to scripting.
×
×
  • Create New...