Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
I'm new to script, but i don't understand why you tell me to do won't work
Some times it's easier to start fresh rather than to add to existing code. The idea is pretty simple. Program() is called only when the script initializes, so you should get the references to the doors in there. to avoid unnecessary CPU usage. You can reuse findBlockOfTypeWithName. Main() runs periodically, so that's where you need to check the door status. You can use IMyDoor.Status and do something similar to my DoorEventWatcher.tick() to detect a status change.
Best of luck!
This is a simple script. It doesn't handle vents for depressurization. There's a way you can minimize the loss of oxygen. You should stick the two doors together and set the airlock to automatically close. You can also set the AUTO_CLOSE_INTERVAL_CYCLES variables lower to decrease the wait time till the door closes. Then, all you have to do is wait for the door to close before opening the other one. The wait time is not as high as with air vents.
One other thing that was quick and easy to do: I updated the script to make it possible to chain up 3 or more doors in one airlock system. With 3 doors, there's no need for automatic close delays. Example::
airlockManager.createAirlock("AIRLOCK03 DOOR A", "AIRLOCK03 DOOR B", "AIRLOCK03 DOOR C");
I hope this helps to some extent.
Sorry my english, i hope someone understand my problem, maybe im doing something worng.
And thanks for your work!!