InDemoMode

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

int InDemoMode (void)

Usage

Return value

Returns true if the engine is currently playing a demo, false otherwise.

Examples

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