WhiteShadow
2006-06-05 00:00:58
This function returns true, when all the players have active to false. I'm not sure if it works, post on your thoughts.
Usage.
function AllHaveGone : Boolean;
var
Pf, FalseChr : Integer;
begin
for Pf:= 0 to HowManyPlayers - 1 do
if(Players[Pf].Active = False)then
begin
FalseChr:= FalseChr + 1
end;
if(FalseChr >= HowManyPlayers)then
begin
Result:= True;
end;
end;Usage.
//Mainloop
begin
SetUpSRL;
repeat
//Yada Yada
until(AllHaveGone)
TerminateScript;
end.