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;
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;