Hello,
I had this script laying around, which was used for a cruiseserver. The cruiseserver shut down for a while now, and i dont think it will be restarted anytime soon.
So i thought to edit the system for public use. Because it had some functions and variables from the main cruiseinsim.
Some features may not work properly, althought i tested some stuff and it seems to work fine. Please let me know if something isnt working, so i can look into it and fix it (if possible).
Describe the bug so detailed as possible.
Download cruise_trafficlight.txt and change the extention from .txt to .lpr.
Add the file into you 'includes' folder and add the script into addonsused.lpr
Features:
You can do that by remove the # infront of:
and set your own folder to save/load your intersections.
=========================================
How to setup a intersection:
=========================================
I had this script laying around, which was used for a cruiseserver. The cruiseserver shut down for a while now, and i dont think it will be restarted anytime soon.
So i thought to edit the system for public use. Because it had some functions and variables from the main cruiseinsim.
Some features may not work properly, althought i tested some stuff and it seems to work fine. Please let me know if something isnt working, so i can look into it and fix it (if possible).
Describe the bug so detailed as possible.
Download cruise_trafficlight.txt and change the extention from .txt to .lpr.
Add the file into you 'includes' folder and add the script into addonsused.lpr
Features:
- Create/Load/Save/Edit intersections
- Enable/Disable intersections: light will blink yellow.
- Add Startlights + Edit their ID's
- Camerasystem for speeding and running red light
- Automatic/Manual system for light sequence.
- Speedlimit for each light
You can do that by remove the # infront of:
#GlobalVar $TrafficLightFolder; $TrafficLightFolder = "C:\Users\Danny\Desktop\SavedTrafficLights";
and set your own folder to save/load your intersections.
=========================================
How to setup a intersection:
=========================================
- Add with the LayoutEditor some Startlights and give the lights a ID number
- Add insimcircles so system sets the approaching Light to the player.
- Add Insim finishlines for the redlight/speedcam system.
- Type !trafficlight and create an intersection
- Add the lights and set the lightID's (same ID's you used in the layoutbuilder)
- To enable camerasystem. Set the camera to "1" and change the incimcircle ID's (same ID's you used in the layoutbuilder)
- Enable the intersection by set the control to "AUTO" and Set the Intersection to "ON"