IsOneFlagCTF: Difference between revisions

(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...")
 
(type is bool)
Tag: Source edit
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Template:ACSWarning}}
{{Template:ACSWarning}}
int '''IsOneFlagCTF''' (void)
bool '''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]]

Latest revision as of 17: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