IsOneFlagCTF: Difference between revisions

From Zandronum Wiki
No edit summary
Tag: Source edit
(type is bool)
Tag: Source edit
 
Line 1: Line 1:
{{Template:ACSWarning}}
{{Template:ACSWarning}}
int '''IsOneFlagCTF''' (void)
bool '''IsOneFlagCTF''' (void)


== Usage ==
== Usage ==

Latest revision as of 18:49, 2 July 2022

This article documents a Zandronum-specific ACS feature which may not be supported by ZDoom and its other child ports.

bool 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