Stationeers

Stationeers

评价数不足
[F&S] Toggle Lights & Doors
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
21.137 KB
2022 年 6 月 1 日 上午 10:46
2024 年 9 月 12 日 下午 7:21
6 项改动说明 ( 查看 )

订阅以下载
[F&S] Toggle Lights & Doors

在 123 的 1 个合集中
[F&S] Advanced Devices
14 件物品
描述
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 条留言
bspawn 6 月 6 日 上午 7:24 
This helped me to begin IC10 coding.
Hoschi 3 月 21 日 上午 11:44 
doors and what is with the Toggle Lights ?
123  [作者] 2024 年 9 月 12 日 下午 7:17 
Updated, removed unnecessary code.
123  [作者] 2024 年 9 月 11 日 下午 9:33 
Updated