#1

Is there a way, to let the npc do something when you just walk against it?
Reply
#2

No,
Reply
#3

You can check if someone is infront of the NPC and then let the NPC do some animation I think.
Reply
#4

Quote:
Originally Posted by [MOB
Tr1viUm ]
You can check if someone is infront of the NPC and then let the NPC do some animation I think.
Check the taxi_npc FS.
Reply
#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


Forum Jump:


Users browsing this thread: