Space Engineers

Space Engineers

63 평점
Auto Closing Doors
   
어워드
즐겨찾기
즐겨찾기됨
즐겨찾기 해제
태그: other_script
파일 크기
게시일
업데이트일
289.923 KB
2018년 8월 7일 오전 11시 13분
2023년 4월 5일 오후 2시 36분
업데이트 노트 4개 (보기)

다운로드 위해 구독하기
Auto Closing Doors

설명
This script can be used as-is, and it is simple to understand and modify. Simply upload it to a Programmable block and compile. (No timer block needed)
It automatically closes all the doors on the local grid, after a specified period (default 3 secs) has elapsed from the moment the door was opened.

If you want to increase / decrease the close delay, pass a 3rd parameter of type int, to the static method 'DoorManager.Initialize' (or just change the hard-coded value). The default is 3 seconds. Eg: `DoorManager.Initialize(this, tickEventManager, 5);` This will set the close delay to 5 seconds.
If you want the script to auto-close doors on connected grids as well, then pass a 4th parameter of type bool, to the static method 'DoorManager.Initialize' (or just change the hard-coded value). The default is false. Eg: `DoorManager.Initialize(this, tickEventManager, 3, true);` This will also auto-close doors on connected grids.
If you want a door to be ignored by this script, add the text '-ignore' to the custom data of the door block.
And that is all there is to it. Enjoy your auto-closing doors!

I added this mod's main class to an open source library.[github.com]
인기 토론 모두 보기(2)
4
2023년 9월 12일 오전 11시 28분
고정됨: Change suggestions
STᑌYᐯᕮᑎSTᕮIᑎ ☢
0
2018년 8월 7일 오후 12시 16분
고정됨: Bugs / Behavioral Issues
STᑌYᐯᕮᑎSTᕮIᑎ ☢
댓글 17
drindiejones 2023년 10월 11일 오후 3시 41분 
This is exactly what I wanted / needed, Thank You :steamthumbsup::steamhappy:
Rupture 2021년 9월 29일 오전 7시 14분 
no problem now lol i sorted it a while back and forgot to update my comment
STᑌYᐯᕮᑎSTᕮIᑎ ☢  [작성자] 2021년 9월 29일 오전 6시 55분 
@Rupture veeeery late reply sorry :cozyspaceengineersa: To ignore a door, edit the door's custom data and add this line: -ignore
The script will then skip any doors that contain that flag in the custom data.
bj1981 2020년 12월 3일 오후 1시 11분 
as far as i know, put the tag (excluded) in the door name, it should exclude it from the script
Rupture 2020년 12월 2일 오전 10시 09분 
any way to stop airtight doors and gates from frostbite to not auto close? ive been using this script for a while now but i dont know if you can do that.
bj1981 2020년 10월 13일 오후 10시 33분 
this is exactly what ive been looking for considering i cant get the sensors to work like they should, ive got airlocks everywhere and its annoying having to open and close each door manually especially when im in a ship going in and out of my hangar, hopefully i can get this to work as described
:steamhappy:
Witt 2018년 10월 26일 오전 6시 47분 
KaH-ZaH!

I will use this script forever! I love it.
SimplyySerenity 2018년 10월 2일 오후 3시 22분 
yea. idk i like the functionality of being able to have it in hangar doors i just dont like how i have to copy and paste it so much. maybe make it block group based or something? idk. but np good luck
STᑌYᐯᕮᑎSTᕮIᑎ ☢  [작성자] 2018년 10월 1일 오전 1시 11분 
I may be able to ignore doors that are of a specific type, but I'll have to look at the provided functionality to see if it allows me to differentiate between door types. I'll look at this soon, I just have some things keeping me occupied in RL.
Cevandri 2018년 9월 20일 오후 2시 42분 
@Stuvenstein, isn't it easier to add ignore certain block names and easily add more for example ignore everything with the name "hangar" and "forcefield" or something like that? in the script itself