Vehicle coordinates (at the back)
#1

Hello. I wanted to ask, how to get coordinates at the back of vehicle ?

Picture: /imageshack/img824/4793/samp056u.jpg

But i want to update coords when vehicle move.
Reply
#2

use getxybehindofvehicle with a distance of 1.1

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 ));
}
Reply
#3

Thank you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)