IsMultiplayer

Revision as of 17:43, 2 July 2022 by DrinkyBird (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This article documents a Zandronum-specific ACS feature which may not be supported by ZDoom and its other child ports.

int IsMultiplayer (void)

Usage

Return value

This returns 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.

Notes

Old ACC builds used to call this PlayerOnTeam. This function is also sometimes seen as IsNetworkGame; which is the exact same function with an identical ACS p-code number.

Examples

Script 1 ENTER
{
    if (IsMultiplayer())
    {
        Print(s: "Isn't multiplayer fun?");
    }
}