GetInvasionState: Difference between revisions
DrinkyBird (talk | contribs) (Created page with "int '''GetInvasionState''' (void) == Return value == If Invasion is enabled, the current state of the game mode is returned. Possible states are listed in the following tabl...") |
DrinkyBird (talk | contribs) No edit summary Tag: Source edit |
||
Line 1: | Line 1: | ||
{{ACSWarning}} | |||
int '''GetInvasionState''' (void) | int '''GetInvasionState''' (void) | ||
== | == Usage == | ||
Returns the current state of the [[Game Modes#Invasion|Invasion]] game mode. | |||
=== Return value === | |||
* '''IS_WAITINGFORPLAYERS''' = 0 | |||
* '''IS_FIRSTCOUNTDOWN''' = 1 | |||
* '''IS_INPROGRESS''' = 2 | |||
* '''IS_BOSSFIGHT''' = 3 | |||
* '''IS_WAVECOMPLETE''' = 4 | |||
* '''IS_COUNTDOWN''' = 5 | |||
* '''IS_MISSIONFAILED''' = 6 | |||
If Invasion is not the current game mode, this function returns -1. | |||
== Examples == | |||
{{noexamples}} | |||
[[Category: ACS | == See also == | ||
* [[GetGameModeState]] | |||
[[Category: ACS functions]] |
Latest revision as of 17:09, 2 July 2022
This article documents a Zandronum-specific ACS feature which may not be supported by ZDoom and its other child ports. |
int GetInvasionState (void)
Usage
Returns the current state of the Invasion game mode.
Return value
- IS_WAITINGFORPLAYERS = 0
- IS_FIRSTCOUNTDOWN = 1
- IS_INPROGRESS = 2
- IS_BOSSFIGHT = 3
- IS_WAVECOMPLETE = 4
- IS_COUNTDOWN = 5
- IS_MISSIONFAILED = 6
If Invasion is not the current game mode, this function returns -1.
Examples
This article lists no examples, please add one. |