# Enable Campaign Saves

Grammarenable Campaign Saves for players
FlagsNative | 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

Returns — void

native void CampaignProgressEnableCampaignSaves(
	playergroup players,
	bool inDisable,
);

Category: Story / Campaign Progress

# Examples

campaigns/swarmstory.sc2campaignbase.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.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:12708

    }
    else {
        CampaignProgressEnableCampaignSaves(PlayerGroupAll(), true);
    }
    libSwaC_gf_ZS_CampaignPreload();

campaigns/voidstory.sc2campaignbase.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.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignLib.galaxy:6548

    }
    else {
        CampaignProgressEnableCampaignSaves(PlayerGroupAll(), true);
    }
    libVoiC_gf_PC_CampaignPreload();

mods/missionpacks/campaigncommon.sc2modbase.sc2data/LibComC.galaxy:369


    if ((libComC_gf_CampaignIsComplete() == true) && (libComC_gf_CampaignMapTypeCheck(lp_storyMap, c_mapKindStory) == false)) {
        CampaignProgressEnableCampaignSaves(PlayerGroupAll(), false);
    }
    else {

mods/missionpacks/campaigncommon.sc2modbase.sc2data/LibComC.galaxy:372

    }
    else {
        CampaignProgressEnableCampaignSaves(PlayerGroupAll(), true);
    }
    TriggerDebugOutput(1, StringExternal("Param/Value/lib_ComC_046CE155"), false);