i was just wondering how i could set a timer on a script so that it terminates after a specified amount of time?
i was just wondering how i could set a timer on a script so that it terminates after a specified amount of time?
I believe they work something to this effect:
SCAR Code:program New;
{.include srl/srl.scar}
Procedure Wait2;
var
VariableHere : Integer;
Begin
MarkTime(VariableHere);
Repeat
Wait(1000)
WriteLn('Waited!')
Until(TimeFromMark(VariableHere) = 1000)
End;
begin
Wait2;
end.
ya but that doesn't terminate it.... but i think i can figure out how to from that thnx!
Then put a
SCAR Code:If(TimeFromMark(VariableHere) >= 1000) Then
Begin
WriteLn('Ending script!');
TerminateScript;
End;
ok thnx!
There are currently 1 users browsing this thread. (0 members and 1 guests)