Vehicle JumpFunction
#1

Hi im trying to make VehicleJumpFunction
And this is how im doing it But i dont know how exactly to do it so i need help
pawn Код:
new currentveh;
currentveh = GetPlayerVehicleID(playerid);
new Float:vehx, Float:vehy, Float:vehz;
GetVehiclePos(currentveh, vehx, vehy, vehz);
SetVehiclePos(currentveh, vehx, +50, vehz);
I want the vehicle to go up but i dont know how to do it?

Ok i found the problem it was simple
i just needed to add vehy+15 so it works but that would make it go backwards not UP
So i added +15 to vehz and then it was vehz+15 and i changed the +50 to vehy
And it works perfectly

So the working Code is
pawn Код:
new currentveh;
currentveh = GetPlayerVehicleID(playerid);
new Float:vehx, Float:vehy, Float:vehz;
GetVehiclePos(currentveh, vehx, vehy, vehz);
SetVehiclePos(currentveh, vehx, vehy, vehz+15);
Reply


Messages In This Thread
Vehicle JumpFunction[SOLVED] - by park4bmx - 27.12.2010, 17:56
Re: Vehicle JumpFunction - by JaTochNietDan - 27.12.2010, 18:22
Re: Vehicle JumpFunction - by park4bmx - 27.12.2010, 18:24
Re: Vehicle JumpFunction - by iggy1 - 27.12.2010, 18:49

Forum Jump:


Users browsing this thread: 4 Guest(s)