25.10.2009, 20:49
Is there a way, to let the npc do something when you just walk against it?
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. ![]() |
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);