Is there a script that will turn a lamp on and off according to what time of day it is?
Or maybe depending on the amount of ambient light there is available?
Or is it even possible?
Thanks, you smart people....
These forums are CLOSED. Please visit the new forums HERE
Lamp switch |
|
|
Aebleskiver Thibedeau
Sapiosexual
Join date: 6 Feb 2008
Posts: 351
|
07-09-2008 13:56
Is there a script that will turn a lamp on and off according to what time of day it is?
Or maybe depending on the amount of ambient light there is available? Or is it even possible? Thanks, you smart people.... |
|
Max Pitre
Registered User
Join date: 19 Jul 2006
Posts: 370
|
07-09-2008 14:04
Yes there is but I'm at work so I can't show you what I have. Turns on/off with the sun or on/off on touch. I'll send what I got later.
I'm not one of these "smart people" you talk of. |
|
Avion Raymaker
Palacio del Emperador!
Join date: 18 Jun 2007
Posts: 980
|
07-09-2008 14:05
Aeble,
This thread got me there. I use mine to light up windows at night in my city skyscrapers. It should work just as well for your lamp: /54/98/206335/1.html |
|
Aebleskiver Thibedeau
Sapiosexual
Join date: 6 Feb 2008
Posts: 351
|
07-10-2008 04:14
Thank you, thank you!
|
|
Max Pitre
Registered User
Join date: 19 Jul 2006
Posts: 370
|
07-10-2008 13:44
Try this one here
http://lslwiki.net/lslwiki/wakka.php?wakka=LibraryLightPole |
|
Aebleskiver Thibedeau
Sapiosexual
Join date: 6 Feb 2008
Posts: 351
|
07-10-2008 16:01
Ok, I followed all that, but what about a script that actually checks and unchecks the Light box on the Features Tab (well, turns Light on and off)? Is that possible to do?
|
|
AnnMarie Otoole
Addicted scripter
Join date: 6 Jan 2007
Posts: 162
|
07-11-2008 09:40
Check http://wiki.secondlife.com/wiki/LlSetPrimitiveParams
and use PRIM_POINT_LIGHT flag |