# Restart Game
Grammar — Restart game for playerGroup
Flags —Native
|Action
Restarts the current level for all the players in the specified player group. Only supported in single player offline games.
# Arguments
playergroup
— Player Group
Returns — void
native void RestartGame(playergroup inPlayerGroup);
# 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
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:8330
libCamp_gf_SaveArcadeGameData();
RestartGame(PlayerGroupAll());
return true;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2map — MapScript.galaxy:8330
libCamp_gf_SaveArcadeGameData();
RestartGame(PlayerGroupAll());
return true;
}