IsOneFlagCTF

From Zandronum Wiki
Revision as of 17:45, 2 July 2022 by DrinkyBird (talk | contribs)
This article documents a Zandronum-specific ACS feature which may not be supported by ZDoom and its other child ports.

int IsOneFlagCTF (void)

Usage

Return value

This function returns whether the current game mode is one-flag Capture The Flag.

Examples

Script 1 ENTER
{
    if (IsOneFlagCTF())
    {
        Print(s:"Have fun playing with only one flag!");
    }
    else
    {
        Print(s:"This map is meant for only one flag CTF!");
    }
}

See also