InDemoMode: Difference between revisions

From Zandronum Wiki
(Added page for InDemoMode.)
 
(3.1 is released, so Devfeature templates have been removed)
Line 1: Line 1:
{{Template:ACSWarning}}
{{Template:ACSWarning}}
int '''InDemoMode''' (void) {{Devfeature|3.1|alpha}}
int '''InDemoMode''' (void)


==Usage==
==Usage==

Revision as of 20:31, 12 December 2021

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

int InDemoMode (void)

Usage

This function can be used to determine if a demo is currently being run or not.

Examples

Script 1 OPEN
{
    if (InDemoMode())
    {
        PrintBold(s:"We are watching a demo right now!");
    }
}