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

changelevel

From Quake Wiki

Revision as of 17:37, 1 August 2023 by Boondorl (talk | contribs) (Created page with "''void'' '''changelevel'''(''string'' newMap) == Usage == Advances to the specified map. Passing the current map will reset the level. === Parameters === *''newMap'' :The ma...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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);
}