Teardown

Teardown

The mayhem continues!
Download maps, missions, vehicles, and more for Teardown. Want to give Teardown modding a try? Click the button below:
Learn More
Is there a way to create multiple lights with one script?
I'm trying to create 2 or more lights connected to a single light button using the "lightswitch" script in the "scripting showcase".

1 button = 1 light works normally.
However, problems occur when 1 button = 2 or more lights.

1 light works normally on/off, but the other lights have lost the on/off function of the voxel's emission and the on/off function of the light, and they are still on.

The order of my scripts is as follows.
light [script] = lightswitch.lua
.vox = switch.tag
.vox/ light with lamp.tag : Emission, on/off function mode works normally
.vox/ light with lamp.tag : From this point on, the on/off function via the button does not work properly

Did I do something wrong?