Space Engineers

Space Engineers

Not enough ratings
Simple Light Control
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
13.454 KB
17 May, 2020 @ 7:33pm
30 Jun, 2020 @ 8:24pm
3 Change Notes ( view )

Subscribe to download
Simple Light Control

Description
A simple script that can set the color of a light by name.
To use, you can run the script with one of the following argument formats:
block_name;color_name
block_name;r;g;b
There are 141 color names available, check inside the script near the bottom for a list of colors.
5 Comments
ARK7 8 Nov, 2020 @ 8:55am 
in the script it shows that the light color is changing but the lights are not changing
avaness  [author] 5 Jun, 2020 @ 3:41pm 
That hasn't been my experience at all. Every ship I've seen, from survival or workshop, has had a different name for every light. You could get the same outcome with groups.
D3Jag 5 Jun, 2020 @ 12:01pm 
Group names are great when keeping names unique on a grid (as happens often with manual builds, suffixed with a number), but many prepackaged grids have uniform names for all lights of a specific type (specific example, the lunar rover has lights on each side that blink, both simply named "Interior Light", and lights over the front wheels named "Corner Light").
avaness  [author] 5 Jun, 2020 @ 10:11am 
A group name option might be more appropriate. About the thumbnail, yes I have many to make. I just have to take the time to do them well.
D3Jag 5 Jun, 2020 @ 9:19am 
I have a fix / suggestion:
This will only change the light color for the first light it finds by name. In my game instance I've used a different API call to grab all the blocks matching by name and iterate through them changing the color. Also, a screenshot of colored lights would probably go well with this script.