Jump to content
Sign in to follow this  
oksman

Custom Mission - Mission Completion in Scenario Screen

Recommended Posts

Hello BI forums, I'm building my Arma 3 SP mission Operation Cold Crisis.

So what I stumbled upon is that I play the mission and finish it and it actually never gets ticked off in Scenarios as completed. I believe there must be a command somewhere around here that does that, without that knowledge I came here to ask for aid in this scripting.

Thanks in Advance

Regards Oksman

Share this post


Link to post
Share on other sites

It's in the description.ext - Link

Have never done it myself but seems like you just use activateKey with whatever triggers the mission end.

Cheers.

Share this post


Link to post
Share on other sites

I'll take a look one moment!

Edit:

Cheers mate works like a charm, I totally thought that was related to checking keys used rather than keys to unlock campaigns / missions.

A Small tutorial for those who doesn't understand then.

keys[] = {"key1","key2","key3"};

Simply what it does is list the different "keys" located in the mission. Imagine it as keys to unlock the door to the next mission (Campaign).

Simply put the code into the description.ext and if you want to change the names of the keys, go ahead.

doneKeys[] = {"key4"};

If I understand this correctly this will be the needed keys to unlock the mission or "complete" the mission. If more than one key is added, more keys needs to be activated before completion.

Now once we've got all this sorted, we only need the last command to "unlock" the door with the key!

activateKey "key4"

This is put into the trigger that also uses a function ("end1" call BIS_fnc_endMission;) and together they spawn the ending debriefing and checks the mission as completed, and possibly allows you to continue missions, however campaign wise I'm totally lost on how this works, singleplayer wise I think I understand!

And for those who doesn't know BIS_fnc_endMission, the wiki is linked here

class CfgDebriefing
{  
class End1
{
	title = "Mission Completed";
	subtitle = "";
	description = "A million horses overran the Ukraine with laser-beams of destruction, be advised.";
	pictureBackground = ".paa files for thos who wants it";
	pictureColor[] = {0.0,0.3,0.6,1};
};
};

All of this is strictly related to description.ext, have fun!

Hope it helps, cheers

Edited by Oksman
  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×