What would I put in the Until(...) tag to make my script turn off after a certain amount of time?
What would I put in the Until(...) tag to make my script turn off after a certain amount of time?
um, i thkn this is what your talking about...
SCAR Code:procedure blah;
begin
If(something=?)then
begin
wait(Timeout)
end;
That should be what your talking about i think...![]()
SCAR Code:procedure WaitItOut;
var maxtime: integer;
begin
MarkTime(maxtime);
while (TimeFromMark(maxtime) < 20000) do
FindNormalRandoms;
end;
Use marktime, timefrommark procedures. There the best in determining time. It doesnt need to be in a procedure like this, this is just an example.
SCAR Code:marktime(mark)//at beginning of script or whatever.
repeat
//code
until (timefrommark(mark) > {some time})
edit:you need the repeat though or it wont work
Thanks guys![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)