Help, Create a Function.
#2

I think this is what you want
Код:
stock GetXYInfrontOfVehicle(vehicleid,Float:distance, &Float:x, &Float:y)
{
  new Float:z, Float:angle;
  GetVehiclePos(vehicleid,x,y,z);
  GetVehicleZAngle(vehicleid,angle);
  x += (distance * floatsin(-angle, degrees));
  y += (distance * floatcos(-angle, degrees));
}
Reply


Messages In This Thread
Help, Create a Function. - by Jastak - 13.09.2015, 02:42
Re: Help, Create a Function. - by X337 - 13.09.2015, 04:11

Forum Jump:


Users browsing this thread: 2 Guest(s)