# GameSetNextCampaignIndex
Flags —
Native
|Action
Sets the campaign Index for the specified player for the next map. Only supported in single player offline games.
# Arguments
playergroup
— Playersint
— CampaignIndex
Returns — void
native void GameSetNextCampaignIndex(
playergroup inPlayerGroup,
int inCampaignIndex,
);
# Related
Category: Game / Transitions
- GameSetNextCampaignIndex —
void
— GameSetNextCampaignIndex - End Game For Player —
void
— GameOver - Restart Game —
void
— RestartGame - Kick From Game —
void
— KickFromGame - Set Next Map —
void
— GameSetNextMap - Set Transition Map —
void
— GameSetTransitionMap - Set Next Mission Difficulty —
void
— SetNextMissionDifficulty - Game Is Transitioned —
bool
— GameIsTransitionMap
# Examples
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNovC.galaxy:2402
// Implementation
if ((libComC_gf_CurrentMissionIsSimulation() == false) && (libComC_gf_CC_StoryInSimulation() == false) && (lp_map == "Nova04")) {
GameSetNextCampaignIndex(PlayerGroupAll(), 6);
}
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNovC.galaxy:2406
if ((libComC_gf_CurrentMissionIsSimulation() == false) && (libComC_gf_CC_StoryInSimulation() == false) && (lp_map == "Nova07")) {
GameSetNextCampaignIndex(PlayerGroupAll(), 7);
}
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNovC.galaxy:2413
void libNovC_gf_NC_ResetCampaignIndex () {
// Implementation
GameSetNextCampaignIndex(PlayerGroupAll(), 5);
}