InDemoMode: Difference between revisions

From Zandronum Wiki
No edit summary
Tag: Source edit
mNo edit summary
Tag: Source edit
 
Line 4: Line 4:
== Usage ==
== Usage ==
=== Return value ===
=== Return value ===
Returns true if the engine is currently playing a demo, false otherwise..
Returns true if the engine is currently playing a demo, false otherwise.


== Examples ==
== Examples ==

Latest revision as of 17:41, 2 July 2022

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