Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Lightswitch scripts

Jonathan Mulberry
Registered User
Join date: 15 Nov 2006
Posts: 106
01-16-2007 05:36
Was wondering if any of you could help. I've been hunting around trying to find what i would have presumed would be a fairly straightforward script to find, but have so far come up with nothing after searching SL and the various LSL scripting websites.

I have built myself a nice floor standing uplighter lamp. What I am looking for is a script that i can drop in to the stand so that when I touch the stand it turns the light on, touch it again it turns the light off.

I presume it would need to be 2 scripts, 1 a controller placed in the stand itself, and the other the script that turns the light on or off placed in the bulb.

Does anyone know where I can get hold of this?
Ideally I'd like it to be copy/trans/mod so that I can look at the script and learn from it and then maybe tweak it to do different things, but to start with any script that worked would do.

Cheers in advance
2k Suisei
Registered User
Join date: 9 Nov 2006
Posts: 2,150
01-16-2007 05:40
Try the 'Scripting Tips' forum, Jonathan. There's lots of people willing to help there. It's about eight doors (forums) down.
Jonathan Mulberry
Registered User
Join date: 15 Nov 2006
Posts: 106
01-16-2007 06:12
hehe.. thx 2k.. I actually meant to post it there.. my mind is unfortunately in RL and at work!!
Matilda Raine
Registered User
Join date: 26 Dec 2004
Posts: 36
01-16-2007 10:09
Jon i have an on off script for lighting. if u want to send me and IM i will send it to u when in world. I am at work myself..



Mati
Jonathan Mulberry
Registered User
Join date: 15 Nov 2006
Posts: 106
01-16-2007 10:18
Thx Matilda, but I've managed to concoct one myself with the help of the guys in the Scripting forum.