SRL Archive - Help

How to add failsafe?


akash22

2012-05-27 18:15:23

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

2012-05-28 15:06:33

i can help you with that pm me ur skype

Gucci

2012-05-28 17:04:22

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