Posts: 49
Threads: 15
Joined: Aug 2006
Reputation:
0
Hey. I wonder if there's any way that if i want the car to go max in ex 50mp/h it wont go faster is there any way to make that posible? becouse that would be great if there is.
Posts: 602
Threads: 3
Joined: Jun 2009
Reputation:
0
Yep,
create a timer, if player is over a certain speed, setvehiclevelocity to that max speed.
Posts: 2,593
Threads: 38
Joined: Aug 2007
Reputation:
0
Timers are too slow for this, it will cause the player to speed, then slow down, then speed up, then slow down. (It's weird)
If you use OnPlayerUpdate, it's too fast and causes a wee bit of lag. (Still funny to fall off a building at 5mph...)
Posts: 602
Threads: 3
Joined: Jun 2009
Reputation:
0
You can use timers, aslong as you do % reduction in speed, yah it can look a little weird, but it works.
I use it in reverse, at higher speeds its not noticeable, but at 50mph it might be.
Posts: 49
Threads: 15
Joined: Aug 2006
Reputation:
0
yeah did just find that out was testing some stuff my self that i found and the SetVehicleVelocity Worked perfect =) Thanks for the help anyway =)