====== ArmA 3 Campaign Missions ======
[[https://www.pmctactical.org/forum/viewforum.php?f=68|ArmA 3 Forum]], [[:arma3|ArmA 3]], [[arma3:config|ArmA 3 Config]], [[arma3:missions|ArmA 3 Missions]], [[arma3:modeling|ArmA 3 3D Modeling]], [[arma3:scripting|ArmA 3 Scripting]], [[arma3:terrain|ArmA 3 Terrain]], [[arma3:texturing|ArmA 3 Texturing]], [[arma3:tools|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.