View Single Post
  #3  
Old 12-21-2011, 05:40 AM
podvoxx podvoxx is offline
Approved Member
 
Join Date: Feb 2010
Posts: 190
Default

Quote:
Originally Posted by Pato Salvaje View Post
Hello:

1.- So many thanks to Podvoxx for this awesome work. Tested tonight in our dedi server and all went fine.

2.- I´m planning use it for a coop test mission for 8 vs 8. I will test to spawn and exit for select a correct aircraft and if it works then launch the mission/s.
If not works... the solution is spawn all the pilots with the correct aircrafts and then launch the mission/s.

3.- Only a question.. is included a script for remove aircrafts when a human pilots despawns?...

thank you again.
Regards
2. Coop has a menu?
If so, you may need to modify the script. I need see coop script.

3. No, I removed the script in this version, as it removes all the aircraft, where he was a player. This is not always necessary. The next version of the script I be testing and adding the ability to disable it in the file setup.txt.

To add a script you can put script-file(and create .mis file) in folder "MissionLoader\System" and add a line in the file "MissionLoader\host-channel.cs":

Code:
public class Mission : AMission
{
    public override void OnBattleStarted()
    {
        base.OnBattleStarted();
        MissionNumberListener = -1;

        GamePlay.gpPostMissionLoad("missions\\MissionLoader\\System\\missionloader.mis"); //Loading menu script 
        GamePlay.gpPostMissionLoad("missions\\MissionLoader\\System\\destroyAI.mis"); //Loading destroyAI script 			
    }
}

Last edited by podvoxx; 12-21-2011 at 05:43 AM.
Reply With Quote