14.06.2014, 14:56
(
Последний раз редактировалось Oskaar1994; 20.06.2014 в 09:16.
)
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:
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; }