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;
}
}
}