Dudenow12
2007-12-09 02:29:06
First let me start off by explaining the concept. This would mainly be use for SMART because you can access the SCAR with out messing up the mouse. The idea of it to be able to reset your characters to true with out using a remote master. So you would just press a button like 1 to set player 1 true.(As far as I know this hasn't been done)
Here is what I have tried to make, but I'm not sure how well it will work or what I will have to do to get it working. I have done it two ways one with if than statements and one with cases, I don't think the cases one is set up right so I would also like comments on which to use. So please include your comments and suggestions. Thank You!!!
Here is what I have tried to make, but I'm not sure how well it will work or what I will have to do to get it working. I have done it two ways one with if than statements and one with cases, I don't think the cases one is set up right so I would also like comments on which to use. So please include your comments and suggestions. Thank You!!!
program PlayerReset;
procedure ControlResetIfThen;//P-1 = 1 P-2 = 2 P-3 = 3 ect...
begin
begin
if Players[1] = False then
begin
if(IsKeyDown(1)) then
Players[1] := True;
Writeln('Player 1 now active')
end;
end;
begin
if Players[2] = False then
begin
if(IsKeyDown(2)) then
Players[2] := True;
Writeln('Player 2 now active')
end;
end;
begin
if Players[3] = False then
begin
if(IsKeyDown(3)) then
Players[3] := True;
Writeln('Player 3 now active')
end;
end;
begin
if Players[4] = False then
begin
if(IsKeyDown(4)) then
Players[4] := True;
Writeln('Player 4 now active')
end;
end;
begin
if Players[5] = False then
begin
if(IsKeyDown(5)) then
Players[5] := True;
Writeln('Player 5 now active')
end;
end;
end;
procedure ControlResetCase;//P-1 = 1 P-2 = 2 P-3 = 3 ect...(But it uses cases)
begin
case (Iskeydown) of
1:
begin
Players[1] := True;
Writeln('Player 1 now active')
end;
2:
begin
Players[2] := True;
Writeln('Player 2 now active')
end;
3:
begin
Players[3] := True;
Writeln('Player 3 now active')
end;
4:
begin
Players[4] := True;
Writeln('Player 4 now active')
end;
5:
begin
Players[5] := True;
Writeln('Player 5 now active')
end;
begin
end.