InDemoMode

From Zandronum Wiki
Jump to navigation Jump to search
Zandronum SkulltagOverlay.png Warning: This feature is Zandronum specific and may not supported by ZDoom and its other child ports!
Documentation may not be accurate, see ACS Functions.

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

1Script 1 OPEN
2{
3    if (InDemoMode())
4    {
5        PrintBold(s:"We are watching a demo right now!");
6    }
7}