car's trunk coordonate
#3

I use this functioni and then play with the Z cordinates of it.

Код:
stock Float:GetXYInFrontOfVehicle(vehicleid, &Float:x, &Float:y, Float:distance)
{
    new Float:a;
    GetVehiclePos(vehicleid, x, y, a);
	GetVehicleZAngle(vehicleid, a);
    x += (distance * floatsin(-a, degrees));
    y += (distance * floatcos(-a, degrees));
    return a;
}
I use Z as 3.5

I hope this will suit your needs. + rep if this helped.
Reply


Messages In This Thread
car's trunk coordonate - by fordawinzz - 25.12.2011, 19:05
Re: car's trunk coordonate - by TheArcher - 25.12.2011, 19:21
Re: car's trunk coordonate - by silvan - 26.12.2011, 09:57

Forum Jump:


Users browsing this thread: 1 Guest(s)