SA-MP Forums Archive
Vehicle speed without falling and Z cordinate - 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: Vehicle speed without falling and Z cordinate (/showthread.php?tid=389678)



Vehicle speed without falling and Z cordinate - Vvolk - 03.11.2012

Hello everybody. I want to get vehicle speed only when vehicle is moving forward,backward and from side to side, but not when vehicle is falling from building, mount etc... How can I do this?


Re: Vehicle speed without falling and Z cordinate - CoaPsyFactor - 03.11.2012

Only way is to use MapAndreas plugin, and then check vehicles Z coordinate....


Re: Vehicle speed without falling and Z cordinate - cessil - 03.11.2012

well there's distance checks which can be used with GetVehiclePosition and there's GetVehicleVelocity which stores into an x y and z variable so I don't see what you're having trouble with