|
bigmoe Whitfield
I>3 Foxes
Join date: 29 Jul 2007
Posts: 459
|
06-04-2008 12:45
I have been bouncing my head off this one for a couple of months and finally was able to sit down and try to figure out how I can make this script here listen and work. I know it already uses llListen on a channel of 14712. Ok I should be able to some how trigger this script with a channel command to turn the lights on or off. here's the script. maybe somebody will have the answer default { state_entry() { llSetStatus(STATUS_BLOCK_GRAB | STATUS_PHANTOM, TRUE); llListen(14712, "", "", ""); } listen(integer chan, string name, key id, string mess) { //llSay(0, "left light heard something"); vector color = (vector)mess; llSetColor(color, ALL_SIDES); if (llVecMag(color) == 0.0) { llSetAlpha(0.0, ALL_SIDES); } else { llSetAlpha(0.9, ALL_SIDES); } } }
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
06-04-2008 13:07
Try typing the following line into your chat box: /14712 <1.0, 0.0, 1.0> That should make it a nice pink color. The bit between and including the angle brackets has the same syntax as a vector in LSL, and represents a color using RGB components between 0.0 (none of the component) and 1.0 (full intensity for that component). See http://www.lslwiki.net/lslwiki/wakka.php?wakka=color
|
|
Mrc Homewood
Mentor of Randomness
Join date: 24 Feb 2007
Posts: 779
|
06-04-2008 13:09
EDIT:
dam you hewee beat me to another post XD
|
|
bigmoe Whitfield
I>3 Foxes
Join date: 29 Jul 2007
Posts: 459
|
06-04-2008 13:25
From: Hewee Zetkin Try typing the following line into your chat box: /14712 <1.0, 0.0, 1.0> That should make it a nice pink color. The bit between and including the angle brackets has the same syntax as a vector in LSL, and represents a color using RGB components between 0.0 (none of the component) and 1.0 (full intensity for that component). See http://www.lslwiki.net/lslwiki/wakka.php?wakka=color^^ thank you so much. I am brain dead today and it puzzled me. Thank you
|