Auto Closing Doors
Изображение 1 из 2. Материалы автора из Steam Workshop.
О материале
«Auto Closing Doors» — материал мастерской Space Engineers. Моды, чертежи кораблей, скрипты и миры для Space Engineers. Данные Steam, описание автора и ссылка для установки через подписку. Совместимость редакцией не проверена.
Описание автора
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.
Как установить и запустить
Откройте оригинальную страницу в Steam Workshop, проверьте версию игры, зависимости и порядок загрузки в описании автора. Нажмите «Подписаться» и дождитесь загрузки Steam. Включите материал в меню модификаций или контента игры, если это требуется. Совместимость и запуск редакцией не проверены.