Stationeers

Stationeers

Not enough ratings
[F&S] Toggle Lights & Doors
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
21.137 KB
1 Jun, 2022 @ 10:46am
12 Sep, 2024 @ 7:21pm
6 Change Notes ( view )

Subscribe to download
[F&S] Toggle Lights & Doors

In 1 collection by 123
[F&S] Advanced Devices
14 items
Description
Description
Switches the lighting state when entering and exiting the room.​
Additionally can open doors with pxoximity sensor.

Requirements
  1. 1 Occupancy Sensor (Kit Sensors)
  2. 1 IC Housing.
  3. 1 Integrated Circuit (IC10).
  4. Any type of (Kit Lights) instead of Wall Light (Battery), Diode Slide, LED.

Optional
  1. 1 Proximity Sensor (Kit Sensors)
  2. 1 Door (Kit Door) (Kit Blast Door), small hangar door

Changeable values in IC code

For the auto door opening to work, you need to change the name of the sensor and the door, use Labeler.
Replace "NAME" to the desired name of the door and sensor, the sensor and the door must have the same name.
##### AUTODOOR CONFIG ##### #push HASH("NAME") ###########################
Example:
##### AUTODOOR CONFIG ##### push HASH("My House Door") ###########################
If you need more doors just add 1 lines of code
Example:
##### AUTODOOR CONFIG ##### push HASH("My House Door") push HASH("My Hydroponics Door") push HASH("My Furnace Door") ###########################
You can add as many doors as you want, but it is not recommended to add more than 10 doors per 1 IC10, because a door may not work in 1 game tick (0.5 sec), due to game limitations. And there may be a 1-second delay.

Note
Will be triggered if there is a player in the same room as the sensor. This sensor only works when placed in a room. Works in multiplayer too. If you have other light sources and do not want to switch them, then separate the electrical lines with a transformer or APC.

If you are using a Proximity Sensor, place it close to the door and also remember to set the detection distance, usually 3 is enough.

Optionally you can install door access control with access cards, configure the doors and sensor with Cartridge (Access Controller) via a handled tablet

Game version support
0.2.5195.23625 10/09/2024
4 Comments
bspawn 6 Jun @ 7:24am 
This helped me to begin IC10 coding.
Hoschi 21 Mar @ 11:44am 
doors and what is with the Toggle Lights ?
123  [author] 12 Sep, 2024 @ 7:17pm 
Updated, removed unnecessary code.
123  [author] 11 Sep, 2024 @ 9:33pm 
Updated