Log in

View Full Version : How to add failsafe?



akash22
05-27-2012, 10:15 PM
Hey guys i finally got a script working and someone posted a failsafe for it.
I wanna know how to install the failsafe.

procedure FailSafe2;
var
Z:TPoint;
begin
Z:= SPS_GetMyPos;
if (Not (Distance(Z.X, Z.Y, x, y) < 20)) then//Change the 25 to whatever you want your distance checking to be.
begin
SPS_WalkToPos(Point(x, y)); // Put in coordinates for T-Point here
end;
end;

KGB
05-28-2012, 07:06 PM
i can help you with that pm me ur skype

Gucci
05-28-2012, 09:04 PM
You could have just pmed me about it :p. At the first x and y put in the SPS point that you walk should be the x and y coords for it and use the same at the other x and y at the bottom