Space Engineers

Space Engineers

119 个评价
Oxygen Sensor (Works in Vanilla SE - No mods needed)
   
奖励
收藏
已收藏
取消收藏
Type: World
文件大小
发表于
55.665 KB
2015 年 3 月 25 日 上午 10:11
1 项改动说明 ( 查看 )

订阅以下载
Oxygen Sensor (Works in Vanilla SE - No mods needed)

描述
Oxygen Sensor (Works in Vanilla SE)

This is an oxygen sensor that you can very easily add to your own ships. All you need to do is make the following;

1) Air Vents called "Air Vent <location i.e. bridge/engine room>"
2) LCD Panels organised into a group called "Oxygen LCD Panels"
3) A sound block called "Oxygen Alarm"
4) A timer block called "Timer Block Oxygen" set to 3 seconds, which triggers the programmable block to run
5) A programmable block containing the script found in downloadable world

It works like this... a timer block triggers a programmable block to run the script below every 3 seconds. That script finds all blocks with "Air Vent" in their name. It then checks their "DetailedInfo" field to see if they are not pressurized. If they aren't pressurized it triggers an alarm and uses the name of the air vent to tell you where the breach is on the LCD panels.

Tips:
- Block names are case sensitive so make sure you follow copy the names above carefully.
- Make sure you don't forget to set the LCD panels to yourself as owner and to display public text as read-only to everyone.
- Watch the video to understand how it works in different situations.

Get the script from the world file or from reddit: http://www.reddit.com/r/spaceengineers/comments/30a73r/working_oxygen_sensor_in_vanilla_se_no_mods_needed/
热门讨论 查看全部(3)
3
2015 年 11 月 4 日 下午 1:16
Line 47 Error
That One R.O.B.
2
2015 年 4 月 6 日 上午 7:09
problem with IMyDoor
acheaen
1
2019 年 4 月 6 日 上午 4:04
Line 50 Error
standing appa
58 条留言
Sagittarius 2017 年 11 月 23 日 上午 11:29 
Hey, could this be updated to the current patch state? Sadly theres a new error to the Line 47 Error
Teto <3 2017 年 2 月 26 日 下午 12:20 
I have a problem witht this. This is the Error:
Program(50,67): Error: 'IMyBlockGroup' does not contain a definition for 'Blocks' and no extension method 'Blocks' accepting a first argument of type 'IMyBlockGroup' could be found(are you missing a using directive or an assembly reference?)
Please help because your idea is great!
Rikkavidu_GER 2015 年 9 月 22 日 上午 9:39 
Hi. Your Script has a Error. What with Blockgroups or so what.
Genius 2015 年 9 月 13 日 下午 5:51 
You have to change "blockGroups = GridTerminalSystem.BlockGroups;"
to "GridTerminalSystem.GetBlockGroups(blockGroups);"
This script is obsolete.
That One R.O.B. 2015 年 8 月 4 日 上午 8:49 
i have an error on line 47 as well i also have a iscussion about it
WortexCZ 2015 年 8 月 1 日 下午 10:15 
Same here. Error at line 47.
sir_evilfish 2015 年 7 月 17 日 下午 12:55 
Hi! It seems the script does not work anymore after the last game update (from today, ver 1.091). There is a compile error at line 47. Anyone else has the same problem?
nogare321 2015 年 4 月 14 日 下午 7:55 
Thanks!
Kesuke  [作者] 2015 年 4 月 14 日 上午 10:00 
of course nogare321.
nogare321 2015 年 4 月 12 日 下午 3:07 
I'm trying to learn how to program in C# for this game. That being said, I've noticed that sections of your code say what I'm trying to do. Would it be ok for me to use your sections (with me citing your steam name) in my scripts?