This script enables the rear lights of the trailers. They completely copy the state of the rear lights of the tractor.
Trailer headlights respond to:
- Stop signal of the tractor;
- Automatic switching of a state of headlights day/night of the tractor;
- Turn off the headlights of the tractor by the player;
- Disconnected tractor;
- Turned off the tractor engine.
In addition:
- Forcibly turns off non-existent headlights of trailers;
- Trailers without any headlights are excluded: Baggage Trailer "A", Baggage Trailer "B", Tug Stairs Trailer, Farm Trailer, Utility Trailer;
- Works on both CJ cars and NPC drivers;
- With all the functionality, two or more trailers attached to the tractor are supported.
There is a "Bonus" folder in the archive. It contains models of standard trailers with corrected taillights from pr0face40.
The second archive contains other trailer search options, perhaps more optimized. They can also be used as an example for scripts where a similar search is needed.