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.
Этот скрипт задействует задние фары прицепов. Они полностью копируют состояние задних фар тягача.
Фары прицепа реагируют на:
- Стоп-сигнал тягача;
- Автопереключение состояния фар день/ночь тягача;
- Отключение фар тягача игроком;
- Отсоединенный тягач;
- Выключенный двигатель тягача.
Помимо этого:
- Принудительно выключает несуществующие передние фары прицепов;
- Исключаются прицепы без каких-либо фар: Baggage Trailer "A", Baggage Trailer "B", Tug Stairs Trailer, Farm Trailer, Utility Trailer;
- Работает как на авто CJ, так и на водителях-НПС;
- Со всем функционалом поддерживается два и более прикрепленных к тягачу прицепа.
В архиве есть папка "Bonus". В ней находятся модели стандартных прицепов с исправленными задними фарами от pr0face40.
Второй архив содержит другие варианты поиска прицепов, быть может более оптимизированные. Также они могут быть использованы как пример для скриптов где нужен аналогичный поиск.