This shows you the differences between two versions of the page.
arma3:missions:campaign-missions [2017-12-16 06:17] snakeman created initial page. |
arma3:missions:campaign-missions [2018-02-01 13:36] (current) snakeman removed stupid class name, added another example. |
||
---|---|---|---|
Line 9: | Line 9: | ||
class CfgDebriefing | class CfgDebriefing | ||
{ | { | ||
- | class End1 | + | class PMC_end1 |
{ | { | ||
- | title = "End1 Activated"; | + | title = "End 1 Activated"; |
subtitle = ""; | subtitle = ""; | ||
- | description = "Yeah end1 rulez"; | + | description = "Yeah end 1 rulez"; |
backgroundPicture = ""; | backgroundPicture = ""; | ||
picture = "b_inf"; | picture = "b_inf"; | ||
Line 19: | Line 19: | ||
}; | }; | ||
- | class pmc1 | + | class PMC_mission_successful |
{ | { | ||
- | title = "PMC 1 Activated"; | + | title = "PMC_mission_successful Activated"; |
subtitle = ""; | subtitle = ""; | ||
- | description = "Yeah pmc1 rulez"; | + | description = "Yeah PMC_mission_successful rulez"; |
backgroundPicture = ""; | backgroundPicture = ""; | ||
picture = "b_inf"; | picture = "b_inf"; | ||
Line 33: | Line 33: | ||
Then any script or trigger during mission to end it: | Then any script or trigger during mission to end it: | ||
<code cpp> | <code cpp> | ||
- | [ "end1", true, 2 ] call BIS_fnc_endMission; | + | [ "PMC_end1", true, 2 ] call BIS_fnc_endMission; |
</code> | </code> | ||
Or | Or | ||
<code cpp> | <code cpp> | ||
- | [ "pmc1", true, 2 ] call BIS_fnc_endMission; | + | [ "PMC_mission_successful", true, 2 ] call BIS_fnc_endMission; |
+ | </code> | ||
+ | |||
+ | Or simply just: | ||
+ | <code cpp> | ||
+ | "PMC_mission_successful" call BIS_fnc_endMission; | ||
</code> | </code> | ||
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. | 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. |