SA-MP Forums Archive
Boosting vehicle. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Boosting vehicle. (/showthread.php?tid=636047)



Boosting vehicle. - GunZ75 - 18.06.2017

Hello guys,
So i am going to make a roleplay gamemode. However i don't think there are enough vehicles for samp, so i want somehow to boost vehicles speed and limits etc so i can create real life vehicles (not the model but attleast speed and velocity). All i did so far was being able to calculate coordinates ahead of the player, get the coordinates from the vehicle current position, subtract them, multiply it by a speed multiplier and then set the velocity to the final result. That will make some kind of Cruise Control that keeps the vehicle steady at that velocity. However i do not want that. I want to make the vehicle speed up like 2.5% each second, but only forward. Hope you guys understand me.


Re: Boosting vehicle. - JasonRiggs - 19.06.2017

Is it able even in SA:MP?


Re: Boosting vehicle. - Sew_Sumi - 19.06.2017

Quote:
Originally Posted by JasonRiggs
View Post
Is it able even in SA:MP?
Yes it is, can you please now stop postwhoring...

https://sampwiki.blast.hk/wiki/SetVehicleVelocity