1,584
edits
DrinkyBird (talk | contribs) mNo edit summary Tag: Source edit |
DrinkyBird (talk | contribs) No edit summary Tag: Source edit |
||
Line 1: | Line 1: | ||
int '''GameType''' (void) | int '''GameType''' (void) | ||
==Usage== | == Usage == | ||
This function can return one of four values: | This function can return one of four values: | ||
Line 15: | Line 15: | ||
:Team game net game. This includes CTF, Skulltag, Domination, and the generic "Team Game", but not Team Deathmatch, Team LMS, or Team Possession. | :Team game net game. This includes CTF, Skulltag, Domination, and the generic "Team Game", but not Team Deathmatch, Team LMS, or Team Possession. | ||
==Examples== | == Examples == | ||
<syntaxhighlight lang="c"> | |||
< | Script 1 ENTER | ||
{ | { | ||
if (GameType() != GAME_SINGLE_PLAYER) | |||
Print(s:"This map was not designed for multiplayer!"); | |||
} | } | ||
</ | </syntaxhighlight> | ||
== See also == | |||
* {{Zdoomwiki|GameType}} | |||
[[ | [[Category:ACS functions]] |