Thread: Skateboard npc
View Single Post
  #9  
Old 02-20-2002, 09:03 AM
relenakat relenakat is offline
Registered User
Join Date: Feb 2002
Posts: 36
relenakat is on a distinguished road
Here's what I have but...when my player stops the shoes move

NPC Code:

// NPC made by Sage Deamon Slayer {Dragon Warrior}
if (playertouchsme) {
toweapons Flying shoes;
}
if(weaponfired){
timeout=.5
this.run=0;
}
if (timeout&&this.run==0){
if (playerdir=0) { playery-=.5; timeout=.5 }
if (playerdir=1) { playerx-=.5; timeout=.5 }
if (playerdir=2) { playery+=.5; timeout=.5 }
if (playerdir=3) { playerx+=.5; timeout=.5 }
}
if(timeout&&this.run==1){
freezeplayer .1;
}