View Single Post
  #1  
Old 12-15-2009, 05:55 AM
thatdwarf thatdwarf is offline
Former UN Dev Admin
Join Date: Nov 2005
Posts: 42
thatdwarf is on a distinguished road
Movement on gmap

Hey everybody,

I have an NPC who's sole purpose is to move a player on a GMAP from y-coordinate 300 to y-coordinate 50. Straight line, nothing fancy

The problem is when I get to y-coordinate 191 and around 64, the player stops moving

Why is this? And any suggestions on fixing this?

The NPC is a DB NPC, here is the main excerpt:

PHP Code:
//#CLIENTSIDE
function onPlayerTouchsMe() {
  
setani("skilift","");
  
disabledefmovement();
  
onTimeout();
}

function 
onTimeout() {
  
player.dir 0;
  
player.y--;
  
setTimer(0.05);

Obviously there is a check in the actual uploaded script for when the script gets to the destination, I am just posting the main part of the movement. I just need help with the


Thanks in advance
Reply With Quote