SetVehicleVelocity using Trig help
#2

ill try but this may not work
pawn Код:
if(!strcmp("/boost", cmdtext, true)) {
        new Float:x, Float:y, Float:z, Float:angle;
        new vehid = GetPlayerVehicleID(playerid);
        GetVehicleZAngle(vehid(playerid),angle);
        x = floatcos(angle/4)+50;
        y = floatsin(90-(angle/4))+50;
        z = 0;
        SetVehicleVelocity(vehid(playerid),x,y,z);
        return 1;
    }
Reply


Messages In This Thread
SetVehicleVelocity using Trig help - by MW2_OWN3D - 05.12.2010, 12:13
Re: SetVehicleVelocity using Trig help - by fangoth1 - 05.12.2010, 12:46
Re: SetVehicleVelocity using Trig help - by MW2_OWN3D - 05.12.2010, 13:05
Re: SetVehicleVelocity using Trig help - by MW2_OWN3D - 05.12.2010, 13:47
Re: SetVehicleVelocity using Trig help - by RSX - 05.12.2010, 14:05
Re: SetVehicleVelocity using Trig help - by MW2_OWN3D - 06.12.2010, 00:11

Forum Jump:


Users browsing this thread: 1 Guest(s)