IsNetworkGame

From Zandronum Wiki
Jump to: navigation, search
Zandronum SkulltagOverlay.png Warning: This feature is Zandronum specific and may not supported by ZDoom and its other child ports!
Documentation may not be accurate, see ACS Functions.

int IsNetworkGame (void)

Usage

This function checks if the game is an online game (being emulated by the Multiplayer Console Command does not count). It bears little relationship to the SinglePlayer and GameType functions, except insofar as those will only report the game as singleplayer if it is offline Cooperative without multiplayer emulation.

Bugs

No known issues, however old ACC builds used to call this PlayerOnTeam.

Examples

1 Script 1 Enter
2 {
3     if (IsNetworkGame())
4     {
5         Print(s: "Isn't multiplayer fun?");
6     }
7 }