SA-MP Forums Archive
Vehicle Move Backward ? - 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 Move Backward ? (/showthread.php?tid=615146)



Vehicle Move Backward ? - MempishDevelerux - 18.08.2016

Example this forward:
PHP код:
new Float:Distance 0.01;
Velocity[0] += (Distance floatsin(-Velocity[3], degrees));
Velocity[1] += (Distance floatcos(-Velocity[3], degrees));
SetVehicleVelocity(vehicleidVelocity[0], Velocity[1], Velocity[2] - 0.01); 
How to move backward this example ? Thanks for help (Sorry bad english skill)


Re: Vehicle Move Backward ? - AbyssMorgan - 18.08.2016

PHP код:
GetVehicleOrientationPos(vehicleid,o_back,0.01,Velocity[0],Velocity[1],Velocity[2]);
SetVehicleVelocity(vehicleid,Velocity[0],Velocity[1],Velocity[2]); 
3DTryg:
https://sampforum.blast.hk/showthread.php?tid=591010