14.01.2010, 09:52
I wanna make it so I can move a player a certain distance towards another player. So I'm using SetPlayerPos for this. Anybody know a maths formula to do this? Or any other method?
new otherplayerid; new Float:X, Float:Y, Float:Z; GetPlayerPos(otherplayerid, x, y, z); SetPlayerPos(playerid, x+5, y, z);
Originally Posted by Celson
Nah I don't want to teleport to the player. It just want to set you closer to the player. Like as if you were running towards him. I'm using the SetPlayerPos on an NPC. And I'm gonna be using a run animation on the NPC. So it will look like he's running towards the player.
|
Originally Posted by wafffllesss
Quote:
|