Iceblade said:
UUUHHHH!!! HHHHMMMMMM!!!! I don't have a comms file or folder or anything like that except a .pas for comms. It will be very difficult without this file to make any comms.
That is correct. Using special comms is a more advanced stage of editing. You need to use WCPPas to decode various WCP files and such.
I don't know why your ship disappears. Either you've bound it to the wrong actionsphere, or you simply forgot to activate it.
I also have no idea why m_Spawn doesn't work at Nav 2. One guess would be, you've altered the functions used by the spawned ships, assigning them to the wrong actionsphere. For ships to show up at this navpoint, they must be either actionsphere 0 or (presumably) 2. Alternatively, it might be simply because the Nav 2 function is utterly fucked up. Here is a list of problems with your Nav 2:
- You're using 'setup' incorrectly. In fact, you're not using it at all. Either get rid of that setup := false line, or do something with setup.
- 'If (NAV_Withinsphere...)' only checks if the player has entered the actionsphere. It doesn't check if he's still in it. The player could visit this navpoint and leave, and the navpoint wouldn't even notice that he's gone.
- That second 'while (1)' loop will prevent the navpoint from ever being activated again. The thing about while (1) loops is that there's no way out of them.
- 'until (NAV_Withinsphere...)', is even worse here. Why is it there? You keep the function waiting until the player enters the navpoint's actionsphere, and then the very next thing you do is deactivate that actionsphere?
- Furthermore, the 'until (NAV_Withinsphere...)' loop doesn't have anything in it. This will crash the mission complaining about an infinite loop.
Try this code, don't just copy and paste it into your mission. Look at it, compare it to your Nav 2 code, and try to figure out why I made each change.
Code:
function M_Nav2;
var
setup = true;
begin
while(1) do begin
if (NAV_WithinSphere(Alpha1)) then begin
Nav_ActivateSelf;
if (setup) then begin
M_Spawn(2,17,23000,23000,233);
M_Spawn(30,10,23222,23222,233);
setup := false;
end;
NAV_SetPlayerNav(1);
while(NAV_WithinSphere(Alpha1)) do begin
AI_WaitSeconds(1);
end;
NAV_DeactivateSelf;
end;
AI_WaitSeconds(1);
end;
end;