These forums are CLOSED. Please visit the new forums HERE
Light changing script |
|
|
Valfore Swindlehurst
Registered User
Join date: 21 Apr 2007
Posts: 2
|
08-21-2007 04:37
ok im new at the whole LSL Scripting and im getting the hang of it, but i have run into a little snag. What im trying to do is, i have lights on the bar that i designed and i want to be able to have the owner of the bar change the color of the light to what he see's fit. Giving the option to either change all the bulb lights the same color or change the color of each bulb individually so that there are different color lights on the bar. Anyone can help me on this? i would greatly apprieciate it. Right now i have it all setup on a to where you touch the prim, and a dialog box come up to give the option of 1 bulb at a time or all bulbs at once and what colors to choose from. Just dont know the rest of the code as far as when they choose a color and the light changes to that color.
|
|
PK Dailey
Registered User
Join date: 23 Dec 2006
Posts: 2
|
Light changing script
08-21-2007 05:12
Hi Valfore, take a look at llSetPrimitiveParams:
https://wiki.secondlife.com/wiki/LlSetPrimitiveParams In particular, point light and full bright are what you want to set. It's just a matter of how you want to pass your variables to the function, and then execute that function on each of the intended prims. PK |