ArmA 3 Campaign Missions

ArmA 3 Forum, ArmA 3, ArmA 3 Config, ArmA 3 Missions, ArmA 3 3D Modeling, ArmA 3 Scripting, ArmA 3 Terrain, ArmA 3 Texturing, ArmA 3 Tools

mission\description.ext new features for ArmA 3:

author = "Snake Man, PMC."; // Author
onLoadName = "PMC 2 Mission";
onLoadMission = "Prepare to defend yourselves!"; // Description
 
class CfgDebriefing
{
	class PMC_end1
	{
		title = "End 1 Activated";
		subtitle = "";
		description = "Yeah end 1 rulez";
		backgroundPicture = "";
		picture = "b_inf";
		pictureColor[] = {0.0,0.3,0.6,1};
	};
 
	class PMC_mission_successful
	{
		title = "PMC_mission_successful Activated";
		subtitle = "";
		description = "Yeah PMC_mission_successful rulez";
		backgroundPicture = "";
		picture = "b_inf";
		pictureColor[] = {0.0,0.3,0.6,1};
	};
};

Then any script or trigger during mission to end it:

[ "PMC_end1", true, 2 ] call BIS_fnc_endMission;

Or

[ "PMC_mission_successful", true, 2 ] call BIS_fnc_endMission;

Or simply just:

"PMC_mission_successful" call BIS_fnc_endMission;

Its very cool now that we can define our own mission ending setups and are not limited to the existing 7 mission ending triggers available.