linnik Posted August 28, 2018 Posted August 28, 2018 (edited) How to make it stop (slowly?)? Why doesn't it work? vehicle.setMissionTrainCoords(x, y, z); Edited August 28, 2018 by linnik
linnik Posted August 28, 2018 Posted August 28, 2018 After some experiments I have found that: 1. You can create train and it starts driving immediately. 2. You can stop it but later you are not allowed to make it go. So train implementation is very raw at this point.
veers Posted August 28, 2018 Author Posted August 28, 2018 My experiments: You can't use integer for speed. 3.7, 3.8, 3.9 works but 4.0 not. 4.1, 4.2 ... 4.9 works but 5.0 not etc.
Hanvod Posted August 28, 2018 Posted August 28, 2018 45 минут назад, linnik сказал: How to make it stop (slowly?)? Why doesn't it work? vehicle.setMissionTrainCoords(x, y, z); mp.game.invoke("0x16469284DB8C62B5", trainHandle, 0) That sets cruise speed to 0, and It stops.
linnik Posted August 28, 2018 Posted August 28, 2018 (edited) 2 минуты назад, Hanvod сказал: mp.game.invoke("0x16469284DB8C62B5", trainHandle, 0) That sets cruise speed to 0, and It stops. But can you start it again? Btw is it syncronized to other players? Edited August 28, 2018 by linnik
Hanvod Posted August 28, 2018 Posted August 28, 2018 Только что, linnik сказал: But can you start it again? Maybe if you set cruise speed back to positive number. mp.game.invoke("0x16469284DB8C62B5", trainHandle, 10)
linnik Posted August 28, 2018 Posted August 28, 2018 3 минуты назад, Hanvod сказал: Maybe if you set cruise speed back to positive number. mp.game.invoke("0x16469284DB8C62B5", trainHandle, 10) is speed always the same or I can vary it?
Hanvod Posted August 28, 2018 Posted August 28, 2018 (edited) 6 минут назад, linnik сказал: is speed always the same or I can vary it? Looks like train always accelerates to cruise speed and then just folows it. But I dont really know Edited August 28, 2018 by Hanvod
Hanvod Posted August 28, 2018 Posted August 28, 2018 (edited) Ok, that natives are working good, but you need to use stupid numbers like 20.54546456464 to make sure that you game wont crash or train wont stop. Edited August 28, 2018 by Hanvod
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