Hmmm... It took my awhile to make this but here it is. By the way!! It's EVIL!!!
NPC Code:
//NPC Made by Ice Pick
if (playertouchsme) {
toweapons GP Net;
}
if (weaponfired) {
if (this.inuse=0) {
this.inuse=1;
this.showimg=1;
this.x=playerx;
this.y=playery;
timeout = .05;
} else {
this.inuse=0;
}
}
if (this.inuse=0) {
this.showimg=0;
hideimg 0;
}
if (this.showimg=1) {
showimg 0,gopoliceneticon.gif,this.x,this.y;
}
if (this.inuse=1) {
if (timeout) {
if (playerdir=0) {
this.y--;
}
if (playerdir=2) {
this.y++;
}
if (playerdir=1) {
this.x--;
}
if (playerdir=3) {
this.x++;
}
if (this.x>64) {
this.x = 0;
}
if (this.x<0) {
this.x = 64;
}
if (this.y>64) {
this.y = 0;
}
if (this.y<0) {
this.y = 64;
}
timeout = .05;
}
}
if (this.showimg=0) {
putnpc gopolicenet.gif,policenet.txt,this.x,this.y;
}
if (playertouchsme){
hide;}
Now make a txt named policenet.txt and put this script in it.
NPC Code:
if (playertouchsme) {block;
}