Arseniy_Los Posted March 7, 2021 Posted March 7, 2021 English Language: Hello! I am new to scripting in lua. I have my own project (I'm from Russia). We want to make a fraction of the railroad. We need to link the locomotive with the wagons (Streak with the Streak Trailer). Please, tell me how you can do it? Russian Language: Здравствуйте! Я новичок в скриптинге на lua. У меня есть свой проект (Я из России). Мы хотим сделать фракцию железной дороги. Нам нужно сцепить локомотив с вагонами (Streak с Streak Trailer). Пожалуйста, подскажите как можно сделать?
Erlkonig Posted March 7, 2021 Posted March 7, 2021 Something like that? Use attachTrailerToVehicle for this. 1
Arseniy_Los Posted March 8, 2021 Author Posted March 8, 2021 (edited) Yes, but I need coupling locomotive with wagons. Cabin change don't need. I need This system. Edited March 8, 2021 by Arseniy_Los
Arseniy_Los Posted March 8, 2021 Author Posted March 8, 2021 This is what I have before writing this script. I need the car to be in the position as on the 1:00 timecode when moving. That is, a composition of one Streak and five Streak Trailers. Thank you very much for your help!
Moderators IIYAMA Posted March 8, 2021 Moderators Posted March 8, 2021 (edited) 2 hours ago, Arseniy_Los said: Yes, but I need coupling locomotive with wagons. Cabin change don't need. You need this function: https://wiki.multitheftauto.com/wiki/AttachTrailerToVehicle Edited March 8, 2021 by IIYAMA
Erlkonig Posted March 8, 2021 Posted March 8, 2021 7 hours ago, Arseniy_Los said: I need This system. I am still working on this, planing to do it with images, not standart gui. Just use attachTrailerToVehicle for this stuff. Russian spoiler: Spoiler У меня немного иной скрипт где из Бравна что-то вроде пригородного поезда сделал, но пока нет особо времени закончить ресурс и добавить управление картинками, с реверсом, 394 краном и прочей лабудой. Чтобы зацепить вагоны юзай обычную attachTrailerToVehicle и крепи вагон к тому с чего будешь управлять. Если прикрепишь сам тепловоз к чему-либо то сможешь использовать только пассажирское место.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now