GetClosestTire
#4

Got it right here in some of my scripts

Код:
GetXYInFrontOfVehicle(vehicleid, &Float:x, &Float:y, Float:distance)
{
	new Float:a;
	GetVehiclePos(vehicleid,x,y,a);
	GetVehicleZAngle(vehicleid,a);

             //a +=180; (uncomment this if you want the coцrds behind the vehicle
	x += (distance * floatsin(-a, degrees));
	y += (distance * floatcos(-a, degrees));
}
have fun
Reply


Messages In This Thread
GetClosestTire - by MisterTickle - 02.11.2010, 20:32
Re: GetClosestTire - by (SF)Noobanatior - 02.11.2010, 20:43
Re: GetClosestTire - by Bessensap - 02.11.2010, 21:08
Re: GetClosestTire - by boelie - 02.11.2010, 21:13
Respuesta: GetClosestTire - by MrDeath537 - 02.11.2010, 21:17
Re: GetClosestTire - by boelie - 02.11.2010, 21:20
Re: GetClosestTire - by Miguel - 02.11.2010, 21:48
Re: GetClosestTire - by Bessensap - 02.11.2010, 22:24
Re: GetClosestTire - by Tannz0rz - 02.11.2010, 22:45
Re: GetClosestTire - by MisterTickle - 04.11.2010, 07:03

Forum Jump:


Users browsing this thread: 1 Guest(s)