Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 05:01 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.