# 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
- [F] —
void
— GameSetNextCampaignIndex — ( GameSetNextCampaignIndex ) - [F] —
void
— End Game For Player — ( GameOver ) - [F] —
void
— Restart Game — ( RestartGame ) - [F] —
void
— Kick From Game — ( KickFromGame ) - [F] —
void
— Set Next Map — ( GameSetNextMap ) - [F] —
void
— Set Transition Map — ( GameSetTransitionMap ) - [F] —
void
— Set Next Mission Difficulty — ( SetNextMissionDifficulty ) - [F] —
bool
— Game Is Transitioned — ( GameIsTransitionMap )
# Examples
# mods/missionpacks/novacampaign.sc2mod
// L2402
GameSetNextCampaignIndex(PlayerGroupAll(), 6)
// L2406
GameSetNextCampaignIndex(PlayerGroupAll(), 7)
// L2413
GameSetNextCampaignIndex(PlayerGroupAll(), 5)