car's trunk coordonate
#1

How can I get the car trunk's coordonate? Is there any function or anything else?
Reply
#2

I think exist a way. You should be very accurate to find only the trunk coords. I don't remeber exactily but Ryder found the gas can one. So you can try to ask him.
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)