InDemoMode

From Zandronum Wiki
Revision as of 21:31, 12 December 2021 by DrinkyBird (talk | contribs) (3.1 is released, so Devfeature templates have been removed)
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!");
    }
}