1,584
edits
DrinkyBird (talk | contribs) No edit summary |
DrinkyBird (talk | contribs) No edit summary Tag: Source edit |
||
Line 1: | Line 1: | ||
{{ACSWarning}} | |||
int '''GetGameModeState''' (void) | int '''GetGameModeState''' (void) | ||
== Usage == | |||
Returns the state of the current [[Game Modes|game mode]]. | |||
=== Return value === | |||
Possible return values are: | |||
In Duel or Last Man Standing, this result is returned during the victory screen. | * '''GAMESTATE_UNSPECIFIED''' = -1 | ||
* '''GAMESTATE_WAITFORPLAYERS''' = 0 | |||
: In Survival, Invasion, Duel, Last Man Standing and Possession, this result is returned when there are not enough players to start the game. In other non-cooperative gamemodes, this result is returned when there are fewer than two players in the game. In cooperative, this result is returned when there are no players in the game. | |||
* '''GAMESTATE_COUNTDOWN''' = 1 | |||
: Returned during a pre-match countdown. | |||
* '''GAMESTATE_INPROGRESS''' = 2 | |||
: Returned when the match is in progress. | |||
* '''GAMESTATE_INRESULTSEQUENCE''' = 3 | |||
: In Survival or Invasion, this result is returned when the "Mission Failed" message has appeared. In Duel or Last Man Standing, this result is returned during the victory screen. In all other gamemodes, this result is returned during the delay at the end of the level. | |||
== Examples == | |||
{{noexamples}} | |||
[[Category: ACS | [[Category: ACS functions]] |