Thread: Prevent hurting
View Single Post
  #22  
Old 08-28-2001, 10:32 PM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
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.
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
Reply With Quote