IsOneFlagCTF: Difference between revisions

From Zandronum Wiki
(Created page with "{{Template:ACSWarning}} int '''IsOneFlagCTF''' (void) ==Usage== This function can be used to determine if the gametype is One Flag Capture The Flag. ==Examples== <syntaxhi...")
 
No edit summary
Tag: Source edit
Line 2: Line 2:
int '''IsOneFlagCTF''' (void)
int '''IsOneFlagCTF''' (void)


==Usage==
== Usage ==
 
=== Return value ===
This function can be used to determine if the gametype is One Flag Capture The Flag.
This function returns whether the current game mode is [[Game_Modes#One_Flag_Capture_the_Flag|one-flag Capture The Flag]].
 
==Examples==


== Examples ==
<syntaxhighlight lang="c" line="1">
<syntaxhighlight lang="c" line="1">
Script 1 ENTER
Script 1 ENTER
Line 22: Line 21:
</syntaxhighlight>
</syntaxhighlight>


[[category:ACS Functions]]
== See also ==
* [[GetCurrentGameMode]]
 
[[category:ACS functions]]

Revision as of 17:45, 2 July 2022

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