Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!

changelevel

From Quake Wiki

void changelevel(string newMap)

Usage[edit]

Advances to the specified map. Passing the current map will reset the level.

Parameters[edit]

  • newMap
The map to go to. This is the internal name e.g. start, e3m6, etc.

Example[edit]

// This function checks if the server is ready to go to the next map
void CheckLevelChange()
{
  if (!intermission_running || intermission_exittime < time)
      return;

  changelevel(nextmap);
}