|
Flapjack Spatula
Terminally Confused
Join date: 12 Feb 2006
Posts: 11
|
02-18-2007 22:29
I have 4 ceiling lights in my house. Currently, to turn them on/off I have to touch each one. Is it possible to have a switch on the wall that will turn all 4 on/off by touching the switch? I am not a scripter.  Thanks in advance! Flappy.
|
|
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
|
02-19-2007 01:55
Yes its possible, but you will need access to the scripts in the existing lights. You will need to have one switch that then communicates with the others either via linked messages or chat.
|
|
Flapjack Spatula
Terminally Confused
Join date: 12 Feb 2006
Posts: 11
|
02-19-2007 06:28
Good! I do have access to the scripts in the light objects. I just don't know how to script the switch or what modifications to make to the light object scripts.
Would you happen to have an example of such a script?
Thank you.
|
|
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
|
02-19-2007 07:57
From: Flapjack Spatula Good! I do have access to the scripts in the light objects. I just don't know how to script the switch or what modifications to make to the light object scripts.
Would you happen to have an example of such a script?
Thank you. Firstly are the lights part of the house, i.e. linked in, or free standing? This is important as it will change the method used to communicate with them. Post your current switch code and we can attempt to modify it.
|
|
Max Pitre
Registered User
Join date: 19 Jul 2006
Posts: 370
|
02-19-2007 08:42
Given a choice, which is better, linked messages or chat? I would think chat would produce a little more lag no matter what channel you use.
|
|
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
|
02-19-2007 13:38
From: Max Pitre Given a choice, which is better, linked messages or chat? I would think chat would produce a little more lag no matter what channel you use. Personally I'd say linked messages as they are contained within the same object.
|