?
Well I'd guess this is what you want:
NPC Code:
if (playertouchsme) {
disabledefmovement;
timeout=0.05;
}
if (timeout) {
showimgpart head#v(this.head).gif,0,64,32,32;
if (keydown(5)) {
enabledefmovement;
}
if (keydown(1)) {
if (this.head<=0) {
this.head=1000;
}
if (this.head>=1) {
this.head=this.head-1;
}
}
if (keydown(3)) {
if (this.head>=1000) {
this.head=0;
}
if (this.head>=1) {
this.head=this.head+1;
}
}
timeout=0.05;
}
Dunno..maybe that'd work.