GetInvasionState

From Zandronum Wiki
Revision as of 16:20, 21 August 2016 by 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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 table:

State
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 enabled, -1 is returned.