GetAngleBetweenVehicleAndPoint
#1

Hey,
does anyone have a function for me which can give me the the Z Angle of a vehicle if it faces a special point. Something like this function but it should be compatible with the Z Angle of the vehicle:
Код:
stock Float:GetAngleBetweenPoints(Float:x1, Float:y1, Float:x2, Float:y2){
    new Float:angle = atan2(y2-y1, x2-x1);
    return angle;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)