Reverse Vehicle Velocity - 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: Reverse Vehicle Velocity (
/showthread.php?tid=421654)
Reverse Vehicle Velocity -
iTorran - 10.03.2013
I was wondering, how can I reverse the velocity of a vehicle?
For example.. if I'm on the LV Highway going north at 60mph, and then script does its thing, I will now be going backwards, headed south at 60mph. I'm not very good with math you see :P so I couldn't work it out on my own
Re: Reverse Vehicle Velocity -
Sinner - 10.03.2013
Multiply the x, y and z velocity with -1.