# 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
- [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
# campaigns/liberty.sc2campaign
// L8330
RestartGame(PlayerGroupAll())
// L8330
RestartGame(PlayerGroupAll())