InDemoMode

Revision as of 12:31, 27 September 2021 by AKMDM (talk | contribs) (Added page for InDemoMode.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This article documents a Zandronum-specific ACS feature which may not be supported by ZDoom and its other child ports.

int InDemoMode (void) (development version 3.1-alpha and above only)

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!");
    }
}