Quote:
Originally posted by aesquivel
i cant get either one of em ta werk on the second one all it does it stay at 3 and i cantfigrue out what im doing wrong!
|
just put what you want to happen while the player is at idle in the commented area.
NPC Code:
if(created) timeout=.05;
if(timeout){
if(!keydown(0) && !keydown(1) && !keydown(2) && !keydown(3)){
this.NotMoving++;
}else{
this.NotMoving=0;
}
if(this.NotMoving>0){
// Do stuff when not moving
}
timeout=.05;
}