Posts: 988
Threads: 9
Joined: Jul 2006
Reputation:
0
Or use clamp() on the values you set in SetVehicleVelocity.
Posts: 92
Threads: 1
Joined: Feb 2009
Reputation:
0
As a simple and very unrefined solution you could set the speedboost to cut out lower than 130 so that the fastest you will get with it will be 130 (you will have to experiment to find the cut off point).
I suppose another method would be to reduce their speed by multiplying their velocities by something between 0 and 1 if their speed is above 130, but I have no idea whether this would even work and if it did, how you would decide what value to multiply the velocities by.
Posts: 19
Threads: 7
Joined: Jun 2009
Reputation:
0
i have even tried that too, but that makes the vehicle suddenly loose speed, and start going again, so it is not an option, lets consider this, lets forget the speedboost at all, is there a way to not let a vhicle go faster than lets say 50 units? just stick on 50 and thats it? litteraly put a limit on how fast anything can goe, even if it can go faster in the original GTA:SA. god i hate mornings, i cant even make a proper sentence O_o
Posts: 988
Threads: 9
Joined: Jul 2006
Reputation:
0
Or use clamp() on the values you set in SetVehicleVelocity.