IsMultiplayer: Difference between revisions
DrinkyBird (talk | contribs) m (DrinkyBird moved page IsNetworkGame to IsMultiplayer) |
DrinkyBird (talk | contribs) mNo edit summary |
||
Line 4: | Line 4: | ||
==Usage== | ==Usage== | ||
This function checks if the game is an online game (being emulated by the | This function checks if the game is an online game (being emulated by the <tt>multiplayer</tt> [[Console Commands|Console Command]] does not count). It bears little relationship to the [[SinglePlayer]] and {{zdw|GameType}} functions, except insofar as those will only report the game as singleplayer if it is ''offline'' Cooperative without multiplayer emulation. | ||
==Bugs== | ==Bugs== |
Revision as of 22:17, 5 August 2021
This article documents a Zandronum-specific ACS feature which may not be supported by ZDoom and its other child ports. |
int IsMultiplayer (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 {{{2}}} 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
Script 1 Enter
{
if (IsMultiplayer())
{
Print(s: "Isn't multiplayer fun?");
}
}