GetXYInFrontOfVehicle problem?
#4

solved using:
pawn Код:
stock GetXYBehindOfVehicle(vehicleid, &Float:x, &Float:y, Float:distance)
{
    new Float: a;
    GetVehiclePos( vehicleid, x, y, a );
    GetVehicleZAngle( vehicleid, a );
    x += ( distance * floatsin( -a+180, degrees ));
    y += ( distance * floatcos( -a+180, degrees ));
}
with distance 3.

woops, wrong topic
Reply


Messages In This Thread
GetXYInFrontOfVehicle problem? - by Donya - 30.04.2011, 17:25
Re: GetXYInFrontOfVehicle problem? - by xir - 30.04.2011, 17:30
Re: GetXYInFrontOfVehicle problem? - by Donya - 30.04.2011, 17:43
Re: GetXYInFrontOfVehicle problem? - by fordawinzz - 26.12.2011, 16:47
Re: GetXYInFrontOfVehicle problem? - by jamesbond007 - 26.12.2011, 18:24

Forum Jump:


Users browsing this thread: 3 Guest(s)