Actions

Difference between revisions of "Custom Airlock IC10"

From Unofficial Stationeers Wiki

(Use proper/better category -> IC10)
m (Use new version IC10 template for syntax highlighting.)
Line 40: Line 40:
 
{| class="mw-collapsible mw-collapsed"
 
{| class="mw-collapsible mw-collapsed"
 
!Source code:
 
!Source code:
 
+
{{ICCode|
 
|-
 
|-
 
|<br>
 
|<br>
Line 164: Line 164:
 
yield<br>
 
yield<br>
 
j ra<br>
 
j ra<br>
 +
}}
 
|}
 
|}

Revision as of 03:35, 20 February 2026

Airlockscreen.jpg

Contents

This script controls all functions of an airlock that consists of the following:

Assembly

Set up a standard airlock for atmosphere on both sides. Configure the pressures in the first two lines of the script. Before exporting the script or resetting the IC, make sure the airlock is cycled to the outside (inner door closed, outer open). The LED serves as trigger for both cycling the airlock and skipping each phase, hence should be placed inside the airlock. The airlock should be a single frame to avoid leftover atmosphere after depressurization. For larger airlocks place the sensor on the far side from the vents. The script supports Blast Doors, but since they lack a door handle you will need a button on each side (outside) of the airlock. Connect a Logic Writer to each button and use it to toggle the LED.

IC10 pin layout:

D0 Interior Door
D1 Exterior Door
D2 Interior Vent
D3 Exterior Vent
D4 Gas Sensor
D5 LED Light

Usage

The airlock can be cycled by interacting with either door, or turning the LED off. During cycling the doors are locked, and the LED can be used to skip both depressurize (red) and pressurize (yellow) phases.

Source Code

Source code: