1,584
edits
DrinkyBird (talk | contribs) (Add note about IsNetworkGame) |
DrinkyBird (talk | contribs) No edit summary Tag: Source edit |
||
Line 2: | Line 2: | ||
int '''IsMultiplayer''' (void) | int '''IsMultiplayer''' (void) | ||
==Usage== | == Usage == | ||
=== Return value === | |||
This returns 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 {{Zdoomwiki|GameType}} functions, except insofar as those will only report the game as singleplayer if it is ''offline'' Cooperative without multiplayer emulation. | |||
== Notes == | |||
==Notes== | |||
Old ACC builds used to call this <tt>PlayerOnTeam</tt>. This function is also sometimes seen as <tt>IsNetworkGame</tt>; which is the exact same function with an identical ACS p-code number. | Old ACC builds used to call this <tt>PlayerOnTeam</tt>. This function is also sometimes seen as <tt>IsNetworkGame</tt>; which is the exact same function with an identical ACS p-code number. | ||
==Examples== | == Examples == | ||
<syntaxhighlight lang="c" line="1"> | <syntaxhighlight lang="c" line="1"> | ||
Script 1 | Script 1 ENTER | ||
{ | { | ||
if (IsMultiplayer()) | if (IsMultiplayer()) | ||
Line 20: | Line 20: | ||
} | } | ||
} | } | ||
</syntaxhighlight > | </syntaxhighlight> | ||
[[category:ACS | [[category:ACS functions]] |