Как определить точку выхода из автомобиля.
#2

Код:
stock GetXYBehindPoint(Float:x,Float:y,&Float:x2,&Float:y2,Float:A,Float:distance)
{
x2 = x - (distance * floatsin(-A,degrees));
y2 = y - (distance * floatcos(-A,degrees));
}

stock GetXYBehindVehicle(playerid,&Float:x,&Float:y,Float:dis)
{
new currentveh;
new float:pos[3];
new float:A;
currentveh = GetPlayerVehicleID(playerid);
GetVehiclePos(currentveh,pos[0],pos[1],pos[2]);
GetVehicleZAngle(currentveh,A);
GetXYBehindPoint(pos[0],pos[1],x,y,A,dis);
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)