View Single Post
  #19  
Old 07-04-2012, 01:41 AM
DeCeaseD DeCeaseD is offline
Registered User
Join Date: Jan 2008
Posts: 247
DeCeaseD will become famous soon enough
Don't disregard my post actually! Lol. For some reason, when I try to make an NPC move, it always returns error: blocking, no matter the x/y input or it's origin x/y.. Anyone know the cause of this? Could it be because I'm trying to place it on a gmap? Also, it doesn't only work with pics1 type tiles, does it.. ?

Come to the conclusion that it's neither of the things I mentioned. Anything else it could be.. ?

Posting my class code for reference:

PHP Code:
function onPlayerchats() 
{
  if ( 
player.chat == "/destroy" && player.account == "DeCeaseD"destroy();
}

//#CLIENTSIDE
function onCreated() 
{
  
this.join("astar");
  
showCharacter();
  
  
this.plyr findnearestplayer(this.xthis.y);
  
  
moveTothis.plyr.xthis.plyr.y);

Also, note that I am placing these NPC's using a class spawner, and not actually adding them to the level via level editor. Could this be what's wrong?

Last edited by DeCeaseD; 07-04-2012 at 02:07 AM..
Reply With Quote