Problem is when I have more than one of the lights up they all do not work, the flow comes on but the Light does not, and when you walk up to the object the light comes on??
here is the script can anyone tell me what is wrong
//Title: Light Switch
//9-01-07
//Simple light switch. Click object with script turns light on and off.
integer light_switch;
vector light_color=<1,1,1>;
float light_intensity=1.0;
float light_radius=04.0;
float light_falloff=1;
init ()
{
//Set light to off initially
light_switch=0;
llSetPrimitiveParams([ PRIM_GLOW, ALL_SIDES, 0.0,PRIM_POINT_LIGHT, FALSE, light_color, light_intensity, light_radius, light_falloff]);
llOwnerSay("Set to midnight and click to toggle light!"
;}
default
{
state_entry()
{
init();
}
on_rez(integer start_param)
{
init();
}
touch_start(integer total_number)
{
if(light_switch==1)
{
//Light is on, turn off
llSetPrimitiveParams([ PRIM_GLOW, ALL_SIDES, 0.0,PRIM_POINT_LIGHT, FALSE, light_color, light_intensity, light_radius, light_falloff]);
light_switch=0;
llOwnerSay("Light turned off."
;}
else
{
//Light is off, turn on
llSetPrimitiveParams([ PRIM_GLOW, ALL_SIDES, 0.3,PRIM_POINT_LIGHT, TRUE, light_color, light_intensity, light_radius, light_falloff]);
light_switch=1;
llOwnerSay("Light turned on."
;}
}
}