GetInvasionWave

From ZDoom Wiki
Revision as of 22:43, 8 January 2017 by Tiger (talk | contribs) (Added a note regarding the -1 if Invasion != 1.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
SkulltagIcon.png Warning: This feature is Skulltag specific, and is not compatible with ZDoom!
To see all of Skulltag's specific features, see Skulltag features.


int GetInvasionWave (void)

Usage

Returns the current wave of a Skulltag invasion game, however if Invasion is not running then expect a value of -1 to be returned instead.

Example

Script 1 OPEN
{
While((GetInvasionWave() != 2))
 {
 Delay(1);
 }
 Print(s:"The second wave started!");
}