Air Vent Module
The air vent module allows players to control air vents for uses like airlocks and oxygen capture.
Commands
pressurize
Set the air vent to pressurize mode.
vent/pressurize <AirVent|Group>
Example
vent/pressurize AirlockAirVent
depressurize
Set the air vent to pressurize mode.
vent/depressurize <AirVent|Group>
Example
vent/depressurize "Atmosphere Intake Fan"
Hooks
The following hooks can be define in the block's Custom Data, and will be triggered when the corresponding command is called:
Key | Trigger |
---|---|
onDepressurized | Activated when an air vent is in the Depressurized state. |
onDepressurizing | Activated when an air vent is in the Depressurized state. |
onPressurized | Activated when an air vent is in the Pressurized state. |
onPressurizing | Activated when an air vent is in the Pressurized state. |
Example
Imagine our air vent is part of our airlock:
[hooks]
onDepressurizing=light/color "MainAirlockLight" red;
onPressurized=door/open "MainAirlockInnerDoor";
Tips
You can use this
to refer to the block itself when targeting it from within its own custom data.
or
[hooks]
"Main Airlock Air Vent".onDepressurizing=
| light/color "MainAirlockLight" red;
ExternalAirVent.onPressurized=
| screen/print "Atmosphere Screen" "IN ATMOSPHERE"