# GameSetNextCampaignIndex

FlagsNative | Action

Sets the campaign Index for the specified player for the next map. Only supported in single player offline games.

# Arguments

  • playergroup — Players
  • int — CampaignIndex

Returns — void

native void GameSetNextCampaignIndex(
	playergroup inPlayerGroup,
	int inCampaignIndex,
);

Category: Game / Transitions

# Examples

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNovC.galaxy:2402

    // Implementation
    if ((libComC_gf_CurrentMissionIsSimulation() == false) && (libComC_gf_CC_StoryInSimulation() == false) && (lp_map == "Nova04")) {
        GameSetNextCampaignIndex(PlayerGroupAll(), 6);
    }

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNovC.galaxy:2406


    if ((libComC_gf_CurrentMissionIsSimulation() == false) && (libComC_gf_CC_StoryInSimulation() == false) && (lp_map == "Nova07")) {
        GameSetNextCampaignIndex(PlayerGroupAll(), 7);
    }

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNovC.galaxy:2413

void libNovC_gf_NC_ResetCampaignIndex () {
    // Implementation
    GameSetNextCampaignIndex(PlayerGroupAll(), 5);
}