How do I do a procedure to run a script for only a certain amount of time. Does something like this work?
SCAR Code:var
CurrentTime:integer;
const
TotalTime=60000; // time you want script to run for
//my main procedures
procedure timestuff;
begin
CurrentTime:=GetSystemTime;
if (CurrentTime>TotalTime) then
TerminateScript;
end;




Reply With Quote



