These forums are CLOSED. Please visit the new forums HERE
Light Script - Can't find :( |
|
|
Cunundrum Alcott
A Sardonic Pessimist
Join date: 15 Jan 2007
Posts: 773
|
02-22-2008 04:24
I've been looking for a full perm script to change the light color. I have scripts to change the prim color and scripts to turn the light on/off but nothing to change the light color.
_____________________
![]() |
|
Broccoli Curry
I am my alt's alt's alt.
Join date: 13 Jun 2006
Posts: 1,660
|
02-22-2008 05:20
Isn't the lsl
llSetPrimitiveParams ([PRIM_POINT_LIGHT, TRUE, <0,1,0>, 1.0, 15.0, 0.25]); The syntax is PRIM_POINT LIGHT on/off, color (RGB values), intensity, radius, and falloff. Any help? _____________________
~ This space has been abandoned as I can no longer afford it.
|
|
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
|
02-22-2008 06:37
Right. If a script turns on and off a light, it sets the color of that light, too. It may not be setting it to the color you want, but it's setting it. (It's often useful to llGetColor of one or all faces of the light-emitting object and make the light be that color.)
|
|
Cunundrum Alcott
A Sardonic Pessimist
Join date: 15 Jan 2007
Posts: 773
|
02-22-2008 06:39
You guys are talking way over my head
_____________________
![]() |
|
Dekka Raymaker
thinking very hard
Join date: 4 Feb 2007
Posts: 3,898
|
02-22-2008 06:56
ok I could have just posted the link but I'm showing off:
Light with Touch On/Off and changeable color via chat commands I have learned a lot from the scripting forums, so here is my first public script. I am often asked about light scripts - lighting a prim is easy, the contols around it can be tricky. This script has some nice control features and is low lag too. NOTE: This is the most up-to-date version of the script Features: *Anyone can touch to turn On/Off *Listens to owner and allows the color of the light to be changed on channel /5555 *Low lag - listens to owner on touch only and cancels the listen after 30 seconds * Detaled comments to help new scripters The command to change the colors are: /5555 white /5555 red /5555 green /5555 blue Enjoy CODE
|
|
Dekka Raymaker
thinking very hard
Join date: 4 Feb 2007
Posts: 3,898
|
02-22-2008 06:58
Here's the link just in case, there is another script there too.
/15/5f/119036/1.html Oh my bad must post the author's name : 2fast4u Nabob |
|
Cunundrum Alcott
A Sardonic Pessimist
Join date: 15 Jan 2007
Posts: 773
|
02-22-2008 07:01
Wow awsum, I'm doing some tutorials on scripting but I'm so analytical thinking that I force myself to understand each symbol....if a symbol is not defined I can not accept that I understand what is going on
![]() _____________________
![]() |