Space Engineers

Space Engineers

Not enough ratings
A.L.C. (Advanced Light Control)
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
2.156 KB
20 Apr, 2015 @ 11:07am
1 Change Note ( view )

Subscribe to download
A.L.C. (Advanced Light Control)

Description
Advanced Light Control improve your interior lights management on your ship or station.
This program put your interior lights into categories and set your configured color. If you
want, you can let rename your lights, soundblocks and sensorblocks automatically by
A.L.C. If active you only have to place your blocks - thats it - the next interior light you will
build get automatically your configurated color properties. If any sensor gets active,
redalert will be triggerd and all interior lights will change the color to red (except the
"alert_disabled-lights). Furthermore the soundblocks will play the configured alarm
sound - or music ;-). I recommend Alert 2 with a loop time of 30 min.

Configuration:

You need just a timer block and a programable block. Once you've placed these two blocks,
you have to setup the programable block. Just load the script into it and setup your favorite
color types. The first field ist a name (here: ALC_example). The color information is in RGB format.
Then you have to say if the light should be take part of the alert system. yes = alert_enabled
no = alert_disabled. The last thing is to setup the default light. Just type in the word "default" (see below):


...
"ALC_example", "130", "184", "56", "alert_enabled", "default",
"ALC_blabla", "1", "2", "3", "alert_diabled", "",
...


After that you can decide to let the script rename automatically all your new interior lights, soundblocks and/or
sensor blocks. If you setup the next 3 parameters to true, there will be nothing to do for you.

bool auto_rename_soundblocks = false; // you can set it to true
bool auto_rename_sensorblocks = false; // you can set it to true
bool auto_rename_interiorlightblocks = true; // you can set it to true

So, the last step is to setup the timerblock. The timerblock should execute itself and run the script every second.
4 Comments
DJ_Apfel  [author] 25 Jan, 2016 @ 1:08pm 
This is what you're searching for: ALC_example", "130", "184", "56", "alert_enabled", "default";
If you want that your lights get triggered, then you have to mark your ALC-Template with "alert_enabled". In this example all lights that are named "ALC_example*" will get in alarm state once the sensor_block is triggered. For the first test you can also set the flag auto_rename_sensorblocks to true.
Maniac 18 Jan, 2016 @ 11:57am 
I want a script to change certain lights to flashing red when triggered, and it looks like this script can do it, but the description is very confusing, I can't figure out how to set it up.
jarhead 26 Jul, 2015 @ 7:32pm 
i have someting like this as well.
[S7G] String 23 Apr, 2015 @ 5:55pm 
Nice, hope to see updates :)
So cool to have a red alert actually change the colour of the lights as well.
Even better if this would work with MMasters Oxygen Lockdown !