Jump to content

Mission failure


Recommended Posts

Posted

So, it seems that even when I complete the missions, even if I meet the objectives *The aircraft I was escorting gets back ok, my wingmen get back ok, I land successfully* the mission always reports back as failed.   What criteria is missed, and is there something with how I exit the mission that could be the problem?

Posted

On a mission in particular?

Posted

Yes.   I was running the original Adler Tag Campaign.   The first two missions I did what was asked, and returned.   

Posted

I guess we all have the same issue. 
what is not asked is to intercept the first flight at mid-channel before they intercept your friends.

if you do what is asked to complet, you’re too far away to comply.

That’s it

Posted (edited)

Have a look at the script .cs file for the mission and find the section 'private void checkLanded'. Here you will find the logic to battle success or failure e.g.:

 

    private void checkLanded(AiAircraft aircraft)
    {
        if (GamePlay.gpPlayer().Place() == aircraft)
        {
            if (airc1.Person(0) != null && !(airc1.Person(0).IsAlive()))
            {
                Campaign.battleSuccess = false;
                HUDMessgeTo("You've failed the main objective!");
                Timeout(10.0, () =>
                {
                    GamePlay.gpHUDLogCenter("Press ESC to end mission!");
                });
            }
            else if (airc1.Person(0) != null && airc1.Person(0).IsAlive())
            {
                Campaign.battleSuccess = true;
                
                isComplete = true;
                score += 100;              
                
                HUDMessgeTo("Main objective completed!");
                Timeout(10.0, () =>
                {
                    GamePlay.gpHUDLogCenter("Press ESC to end mission!");                    
                });
            }
        }
    }

In this case, if airc1 exists and is alive then you succeed. Search the rest of the code and you will find which aircraft is airc1.

Edited by marcost

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...