Space Engineers

Space Engineers

38 个评价
Animated Alert Panels and Lights Controller
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
7.607 KB
2015 年 9 月 9 日 上午 10:39
2020 年 3 月 13 日 上午 11:07
10 项改动说明 ( 查看 )

订阅以下载
Animated Alert Panels and Lights Controller

描述
Requires the following LCD textures, if you want to use LCD Panels to display the Alert Status:
http://psteamcommunity.yuanyoumao.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 条留言
Geert-Jan 2023 年 5 月 7 日 上午 4:07 
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 2022 年 2 月 25 日 下午 7:19 
Works fine in single player but does not work on dedicated server after warfare 2 update.
♫ erikhale gaming 🐺 2020 年 11 月 5 日 下午 5:23 
i think bit slow with script and alert status is stable so i got it change little fast
meymo  [作者] 2020 年 9 月 29 日 下午 12:11 
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 2020 年 9 月 28 日 下午 2:05 
can it respond to a sensor?
[VVAR] Razzun 2020 年 8 月 25 日 下午 4:02 
Thank you for the script. I use this script in all my worlds/builds.
meymo  [作者] 2020 年 3 月 13 日 上午 11:20 
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 2019 年 5 月 10 日 上午 6:58 
Please Update it.
Xakorik 2019 年 5 月 2 日 下午 2:23 
Isn't "Green" the all clear state, that would be the "reset" state you want
Kinoe 2019 年 4 月 15 日 上午 2:15 
Ok, i think he has a "normal alert".
Thanks :D