# Enable Campaign Saves
Grammar — enable Campaign Saves for players
Flags —Native
|Action
|Restricted
If campaign saves are enabled, all saves made will be copied into the file specified by the SaveName field in Campaign Data in GameUI Data for the current campaign
# Arguments
playergroup
— Playersbool
<preset::Enable_Disable_Option> — Enable
Returns — void
native void CampaignProgressEnableCampaignSaves(
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:12705
if ((libSwaC_gv_zS_InCompletedCampaign == true) && (libSwaC_gf_StoryMapTypeCheck(libSwaC_gv_zS_CurrentMap, c_mapKindStory) == false)) {
CampaignProgressEnableCampaignSaves(PlayerGroupAll(), false);
}
else {
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:12708
}
else {
CampaignProgressEnableCampaignSaves(PlayerGroupAll(), true);
}
libSwaC_gf_ZS_CampaignPreload();
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignLib.galaxy:6545
if ((libVoiC_gf_PC_CampaignMapTypeCheck(lp_map, c_mapKindStory) == false) && (libVoiC_gf_PC_CampaignIsComplete() == true)) {
CampaignProgressEnableCampaignSaves(PlayerGroupAll(), false);
}
else {
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignLib.galaxy:6548
}
else {
CampaignProgressEnableCampaignSaves(PlayerGroupAll(), true);
}
libVoiC_gf_PC_CampaignPreload();
mods/missionpacks/campaigncommon.sc2mod — base.sc2data/LibComC.galaxy:369
if ((libComC_gf_CampaignIsComplete() == true) && (libComC_gf_CampaignMapTypeCheck(lp_storyMap, c_mapKindStory) == false)) {
CampaignProgressEnableCampaignSaves(PlayerGroupAll(), false);
}
else {
mods/missionpacks/campaigncommon.sc2mod — base.sc2data/LibComC.galaxy:372
}
else {
CampaignProgressEnableCampaignSaves(PlayerGroupAll(), true);
}
TriggerDebugOutput(1, StringExternal("Param/Value/lib_ComC_046CE155"), false);