# Enable Campaign Completed Saves
Grammar — enable Campaign Completed Saves for players
Flags —Native
|Action
|Restricted
If campaign completed saves are enabled, all saves made will be copied into the file specified by the CompletedSaveName field in Campaign Data in GameUI Data for the current campaign
# Arguments
playergroup
— Playersbool
<preset::Enable_Disable_Option> — Enable
Returns — void
native void CampaignProgressEnableCampaignCompletedSaves(
playergroup players,
bool inDisable,
);
# Related
Category: Story / Campaign Progress
- Set Campaign Progress Text —
void
— CampaignProgressSetText - Set Campaign Progress Image —
void
— CampaignProgressSetImageFilePath - Set Campaign Progress Tutorial Finished —
void
— CampaignProgressSetTutorialFinished - Set Campaign Progress Campaign Finished —
void
— CampaignProgressSetCampaignFinished - Delete Campaign Save —
void
— CampaignProgressDeleteCampaignSave - Enable Campaign Saves —
void
— CampaignProgressEnableCampaignSaves - Enable Campaign Completed Saves —
void
— CampaignProgressEnableCampaignCompletedSaves
# Examples
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:14182
SoundtrackStop(PlayerGroupAll(), c_soundtrackCategoryAmbience, true);
if ((AchievementsDisabled(1) == false) && ((libSwaC_gf_CurrentMap() == "ZKorhal3") || (libSwaC_gv_zS_InCompletedCampaign == true))) {
CampaignProgressEnableCampaignCompletedSaves(PlayerGroupAll(), true);
}
campaigns/swarmstoryutil.sc2mod — base.sc2data/Lib281DEC45.galaxy:674
TriggerDebugOutput(1, StringExternal("Param/Value/lib_281DEC45_BED331D6"), false);
if ((lib281DEC45_gv_zSS_CampaignComplete == true)) {
CampaignProgressEnableCampaignCompletedSaves(PlayerGroupAll(), true);
}
else {
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignLib.galaxy:6776
}
CampaignProgressEnableCampaignCompletedSaves(PlayerGroupAll(), true);
}
mods/missionpacks/campaigncommon.sc2mod — base.sc2data/LibComC.galaxy:3000
}
CampaignProgressEnableCampaignCompletedSaves(PlayerGroupAll(), true);
}
mods/voidprologue.sc2mod — base.sc2data/LibA3DDD02B.galaxy:5931
}
CampaignProgressEnableCampaignCompletedSaves(PlayerGroupAll(), true);
}