#5

hmm, where should i put this in my gamemode then?

Код:
stock GetXYInfrontOfMe(Float:distance, &Float:x, &Float:y)
{
  new Float:z, Float:angle;
  GetMyPos(x,y,z);
  GetMyFacingAngle(angle);
  x += (distance * floatsin(-angle, degrees));
  y += (distance * floatcos(-angle, degrees));
}

GetXYInfrontOfMe(AHEAD_OF_CAR_DISTANCE,X,Y);
Reply


Messages In This Thread
npc - by thuron - 25.10.2009, 20:49
Re: npc - by Kyle - 26.10.2009, 09:56
Re: npc - by Tr1viUm - 26.10.2009, 10:00
Re: npc - by Karlip - 26.10.2009, 10:15
Re: npc - by thuron - 26.10.2009, 13:00

Forum Jump:


Users browsing this thread: 1 Guest(s)