Thread: Possible?
View Single Post
  #14  
Old 05-18-2002, 01:31 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Quote:
Originally posted by Bhala
for your script just do this.
NPC Code:

if(created) timeout=.05;

if(timeout){
if(!keydown(0) && !keydown(1) && !keydown(2) && !keydown(3)){
this.NotMoving++;
}else{
this.NotMoving=0;
}
timeout=.05;
}

even better:
NPC Code:

if (created) {
timeout=0.05;
}
if (timeout) {
for(i=0;i<3;i++) {
if (keydown(i)) {
this.move++;
} else {
this.move=0;
}
}
}

Reply With Quote