Scrap Mechanic

Scrap Mechanic

Not enough ratings
Navigator Mod: Traffic Lights Block
By wingcomstriker405
In this guide I will explain how to use the Traffic Light Block!
   
Award
Favorite
Favorited
Unfavorite
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 Comments
Tordie1 3 Apr, 2023 @ 9:06am 
dude you respond very fast and thanks
wingcomstriker405  [author] 9 Oct, 2022 @ 3:15am 
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 8 Oct, 2022 @ 7:14am 
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.