[Help] Flip
#9

Код:
stock SetVehicleForwardVelocity(playerid,Float:Velocity, Float:Z1)
{
new Float:Getx1, Float:Gety1, Float:Getz1;
new Float:AngleZ1;
new Float:SpeedX1, Float:SpeedY1;
new Float:Mulx1, Float:Muly1;
new Vehicle = GetPlayerVehicleID(playerid);
GetVehicleVelocity(Vehicle, Getx1 ,Gety1 ,Getz1);
GetVehicleZAngle(Vehicle,AngleZ1);
SpeedX1 = floatsin(-AngleZ1, degrees);
SpeedY1 = floatcos(-AngleZ1, degrees);
Mulx1 = floatmul(Velocity, SpeedX1);
Muly1 = floatmul(Velocity, SpeedY1);
SetVehicleVelocity(Vehicle, floatadd(Mulx1,Getx1), floatadd(Muly1, Gety1), floatadd(Getz1, Z1));
return 1;
}
This is not really for flying, but it is a combination of jumping and boosting.
Reply


Messages In This Thread
[Help] Flip w/ Image - by kbalor - 24.06.2012, 20:15
Re: [Help] Flip - by JaTochNietDan - 24.06.2012, 20:17
Re: [Help] Flip - by Grand_Micha - 24.06.2012, 20:18
Re: [Help] Flip - by kbalor - 24.06.2012, 20:23
Re: [Help] Flip - by Grand_Micha - 24.06.2012, 20:25
Re: [Help] Flip - by kbalor - 24.06.2012, 20:27
Re: [Help] Flip - by JaTochNietDan - 24.06.2012, 20:28
Re: [Help] Flip - by kbalor - 24.06.2012, 20:36
Re: [Help] Flip - by Grand_Micha - 24.06.2012, 20:43
Re: [Help] Flip - by kbalor - 24.06.2012, 20:46

Forum Jump:


Users browsing this thread: 2 Guest(s)