# Restart Game

Grammar — Restart game for playerGroup
FlagsNative | 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);

Category: Game / Transitions

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:8330


    libCamp_gf_SaveArcadeGameData();
    RestartGame(PlayerGroupAll());
    return true;
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2mapMapScript.galaxy:8330


    libCamp_gf_SaveArcadeGameData();
    RestartGame(PlayerGroupAll());
    return true;
}