Script for a traffic light system that regulates the AI traffic and in the future also the AD traffic.
Only with green the AI vehicles drive.
The green phases can be set directly in the map.
Each crossing can have as many phases as you need.
Each phase has as many traffic lights and lights as you need.
The structure can be seen in the example i3d crossing.
The example is only for reference and not for direct usage in Maps.
More detailed description in the script file.
Trafficlights are synced in Multiplayer.
– Keep green as long as a Vehicle is in one of the ai Blockers
– Shorten the phases from 2 to 1 second