Space Engineers

Space Engineers

38 ratings
Animated Alert Panels and Lights Controller
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
7.607 KB
9 Sep, 2015 @ 10:39am
13 Mar, 2020 @ 11:07am
10 Change Notes ( view )

Subscribe to download
Animated Alert Panels and Lights Controller

Description
Requires the following LCD textures, if you want to use LCD Panels to display the Alert Status:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=403580502

Simply load the script onto a Programmable Block and add [Alert] to the name of all LCD Panels and/or Lights and/or SoundBlocks that should be controlled by this script. Make sure that you add [Alert] exactly as written here or the script will not find the block. You don't need to have all three types of blocks. For blocks with multiple displays (like the cockpit) you must specify which display to use. To do that add "display=DISPLAY_INDEX" where DISPLAY_INDEX is the index of the display to use. For the first display this would be "display=0" so the entire needed Text in the name would be "[Alert display=0]". You can also specify multiple by seperating them with a comma. In the last screenshot the cockpit has this in it's name "[Alert display=4,5]".

If you want the LCD to display text instead add [Alert Text] to its name and edit the messages in the script by changing the text between the "" in the lines: string greenText = "Condition Green"; etc. You can use \n to introduce a linebreak.

For the SoundBlock you have to select the sound to play in the SoundBlock, as well as the loop time. You also have to name them [Alert red] if you want them to play during a red alert, or [Alert blue] for blue alert etc.

Then, when adding the Programmable Block to a Button Panel / Timer / etc., type in one of the following as the argument to select the desired condition:
green
yellow
red
blue

For condition blue you can also add landing/takeoff or docking after blue to pick the appropiate textures, like this:
blue landing
blue takeoff
blue docking

If you type just blue the landing textures will be used.

If you have problems check the Programmable Block it will produce an error message if it can't figure out what alert you want.

Also make sure that both the LCD Panels and the Programmable Block are owned by you as well as any Button Panel / Timer / Cockpit / etc. that trigers the Programmable Block.

If you want to change the animation speed you can do so by changing the number in the 5th line of the script from 0.3f to for example 0.2f.

You can also change the Colors for the Lights in the script and the Blink Interval of the lights. By default the lights only blink on Red Alert.
59 Comments
Geert-Jan 7 May, 2023 @ 4:07am 
Hello, i have a problem with the LCD and sound block, there both do nothing after i tagged everyything [Alert] The lights are working fine.
68ChevySS 25 Feb, 2022 @ 7:19pm 
Works fine in single player but does not work on dedicated server after warfare 2 update.
♫ erikhale gaming 🐺 5 Nov, 2020 @ 5:23pm 
i think bit slow with script and alert status is stable so i got it change little fast
meymo  [author] 29 Sep, 2020 @ 12:11pm 
It's a script for the programmable block. It can respond to anything that can trigger a programmable block. So yes I think sensors shopuld work.
big_blue_4101 28 Sep, 2020 @ 2:05pm 
can it respond to a sensor?
[VVAR] Razzun 25 Aug, 2020 @ 4:02pm 
Thank you for the script. I use this script in all my worlds/builds.
meymo  [author] 13 Mar, 2020 @ 11:20am 
It compiled fine for me, but there where quite some warnings.
I updated the script to get rid of the warnings and as a bonus it now also supports cockpits and other blocks with multiple displays.
Feuerspucker 10 May, 2019 @ 6:58am 
Please Update it.
Xakorik 2 May, 2019 @ 2:23pm 
Isn't "Green" the all clear state, that would be the "reset" state you want
Kinoe 15 Apr, 2019 @ 2:15am 
Ok, i think he has a "normal alert".
Thanks :D