InDemoMode

From Zandronum Wiki
Revision as of 17:41, 2 July 2022 by DrinkyBird (talk | contribs)
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!");
    }
}