AAAHHHH!!!!
This spawn doesn't make any sense? It keeps asking for a statement before the the M_DSpawn, and when I get rid of the D and it refers back to the utils, it doesn't work in the mission. Okay Quarto, where is the error because I am not seeing it? (FYI, putting it within the var causes the same compile error)
function M_Nav1;
var
setup = true;
begin
while(1) do begin
if (NAV_WithinSphere(Player)) then begin
NAV_ActivateSelf;
SF_Activateobject(Transport, 0);
//M_DSpawn(31, 7, 5000, 0, -250);
if (setup) then begin
setup := false;
end;
end;
end;
if (Nav_WithinSphere(Player)) then begin
AI_Waitseconds(10);
M_DSpawn(31, 7, 5000, 0, -250);
end;
end;
function M_DSpawn(shipId, count, x, y, z);
var
ox, oy, oz;
begin
while(count > 0) do begin
ox := x + SYS_Random(600) - 300;
oy := y + SYS_Random(600) - 300;
oz := z + SYS_Random(600) - 300;
m_AliveEnemies := m_AliveEnemies + 1;
NAV_CreateShip(shipId, 138, 0, @M_DFighter, @M_DFDeath, ox, oy, oz);
AI_WaitMilliseconds(275);
count := count - 1;
end;
end;
function M_DFighter;
begin
SF_Activateself(0);
end;
Function M_DFdeath
begin
end;