Space Engineers

Space Engineers

评价数不足
AutoAirlock
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
3.690 KB
2018 年 9 月 4 日 上午 3:29
2018 年 9 月 9 日 下午 7:30
2 项改动说明 ( 查看 )

订阅以下载
AutoAirlock

描述
AutoAirlock
by jubbajubbjubb / not-a-cylon

Update version 4.0- increased performance by a huuuuge amount. Perfectly fine for single player, almost server friendly.



Actually automatic! Absolutely no naming necessary.

Instructions
Just run the script once.The script will give an unreachable code warning.
Ignore the warning- it has no effect on the code.

Place two sliding doors with their opening sides connected. As long as their opening sides are connected, the script will add the automatic airlock function.

How it works
The script assumes that if two sliding doors are connected, then the pair is an airlock.
If one side of the airlock is opened, the other side is disabled. Airlock will cycle closed and both sides will be enabled for use again.

Optional configuration
Set isExcludedEnabled to true and add the excludedTag to the sliding doors that must have the automatic functionality disabled.
Change the waitTime to change airlock cycle speed. Lower for faster, higher for slower.

Warnings/Disclaimers
Will only work with sliding doors.
Author is not responsible for injury or loss of life from not opening the pod bay doors

To Do
Learn how to code.
Learn how to use yielding enumerator[github.com] to make a much much much more efficient code.
5 条留言
Misteryx5 2023 年 10 月 5 日 下午 1:34 
best script ever, love it :D

script still functoinal, just need to remove some lines: 30, 131 and everything past 471 as its not rly needed

not a coder but have it-background, if i find out how to upload scripts to workshop ill update it with this here as credit
Dots 2021 年 1 月 7 日 下午 1:52 
3 years later script is not working anymore and throws a bunch of errors!
mazrados 2020 年 8 月 7 日 下午 5:09 
Sometimes it enables second door too fast and it depressurises room.
I think that's the case if I go in strait line. It's just a bit too fast.
aczel2 2020 年 1 月 24 日 上午 11:23 
Best Airlock script !!!
Misteryx5 2019 年 4 月 26 日 下午 1:59 
awsome skript, but currently it only closes the doors for me, does not disable and do the airlock thing shown in the llovely video. is there a problem wiht the current version of SE present? or does the skript simply need an update?