SetVehicleVelocity(Help Please)
#6

let's see if i still remember how to do this

pawn Код:
new Float:x, Float:y, Float:z, Float:angle, carid;
carid = GetPlayerVehicleID(playerid);
GetVehicleVelocity(carid, x, y, z);
GetPlayerZAngle(carid, angle);
x = 0.2 * floatcos(angle + 90.0, degrees) + x;
y = 0.2 * floatsin(angle + 90.0, degrees) + y;
SetVehicleVelocity(carid, x, y, z);
if you find it is always going at a certain angle to the way you are facing, just change the + 90.0 to some dif numbers till you get it right.
Reply


Messages In This Thread
SetVehicleVelocity(Help Please) - by user226 - 09.09.2009, 20:10
Re: SetVehicleVelocity(Help Please) - by d0 - 09.09.2009, 20:26
Re: SetVehicleVelocity(Help Please) - by Angelus~ - 09.09.2009, 21:01
Re: SetVehicleVelocity(Help Please) - by user226 - 09.09.2009, 21:13
Re: SetVehicleVelocity(Help Please) - by Angelus~ - 09.09.2009, 22:10
Re: SetVehicleVelocity(Help Please) - by Daren_Jacobson - 10.09.2009, 03:33

Forum Jump:


Users browsing this thread: 1 Guest(s)