Scrap Mechanic

Scrap Mechanic

评价数不足
Navigator Mod: Traffic Lights Block
由 wingcomstriker405 制作
In this guide I will explain how to use the Traffic Light Block!
   
奖励
收藏
已收藏
取消收藏
Introduction
The Traffic Light Block is very useful to manage traffic in bigger systems where paths of vehicles might cross eachother!
How to add a traffic light to a path
First of all you need a path where you can add the traffic light.
For this guide I have chosen this path where the direction is from left to right and I want to add a traffic light at the third Street Node.
At the right side are just three Address Nodes for testing.

1) Add the Traffic Light Block
2) Connect an input to the Traffic Light Block
NOTE: This is just a button with some logic gates to shorten the signal
3) [Optional] Hide everything under the road and add a 'real' traffic light
NOTE: To get the output of the block you can just connect the light / a gate to the block. Also to get the 'green signal' just connect a nor gate to the Traffic Light Block and connect it to the green light

RESULT: You have a traffic light that will stop the comming vehicles when they are close enought

I hope this guide was helpful! If you have suggestions on how to improve the mod or this guide let me know :)
3 条留言
Tordie1 2023 年 4 月 3 日 上午 9:06 
dude you respond very fast and thanks
wingcomstriker405  [作者] 2022 年 10 月 9 日 上午 3:15 
iirc the block doesnt recognize that a vehicle is waiting. you can achive that using a sensor inside the road and then based on that control the lights. hope that helps and answers your question
Tordie1 2022 年 10 月 8 日 上午 7:14 
uh my traffic lights just don't change when a nav car gets to the stop, the nav car stops at the light but the light doesn't change no matter what i do.