Quote:
Originally posted by ownerofbabylon
Is there anyway to prevent the player from flying back?
|
Well, in a script that I once wrote (trashed because it was too buggy), I stored that player's X and Y values.
NPC Code:
if (washit) {
playerhearts=playerfullhearts;
playerx=this.x;
playery=this.y;
setani idle,;
timeout=0.05;
}
Now, you will need a timeout to set the player X and Y.
NPC Code:
if (timeout) {
this.x=playerx;
this.y=playery;
timeout=0.05;
}
Try that.