View Single Post
  #8  
Old 06-05-2012, 02:39 AM
blackbeltben blackbeltben is offline
Registered User
Join Date: Aug 2011
Posts: 83
blackbeltben is on a distinguished road
Quote:
Just realized that I had a typo. Accidently wrote
yea I noticed the typo in fixed it when i saw error in RC lol

The script wakes up my npc. But the NPC doesn't know who to follow once woken up. here is what I got

PHP Code:
  for (temp.pplayers) { 
  
with (temp.p) {
 if (
temp.p.this.x){
  
this.dir 1;
 
this.-= (this.speed);}
 if (
temp.p.this.x){
  
this.dir 3;
 
this.+= (this.speed);}
 if (
temp.p.this.y){
 
this.-= (this.speed);}
 if (
temp.p.this.y){
 
this.+= (this.speed);}
  }
 } 
This is also in a looping script. The baddie will follow you once you attack it or something, but other that than that, it just runs in place after woken up when a player is near

Last edited by blackbeltben; 06-05-2012 at 03:05 AM..
Reply With Quote