Jump to content

Recommended Posts

Posted (edited)

How to make it stop (slowly?)?

Why doesn't it work? 

vehicle.setMissionTrainCoords(x, y, z);
Edited by linnik
Posted

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.

Posted

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.

Posted
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.

 

Posted (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 by linnik
Posted (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 by Hanvod
Posted (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 by Hanvod

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...