InDemoMode: Difference between revisions
(Added page for InDemoMode.) |
DrinkyBird (talk | contribs) mNo edit summary Tag: Source edit |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Template:ACSWarning}} | {{Template:ACSWarning}} | ||
int '''InDemoMode''' (void) | int '''InDemoMode''' (void) | ||
==Usage== | == Usage == | ||
=== Return value === | |||
Returns true if the engine is currently playing a demo, false otherwise. | |||
== Examples == | |||
<syntaxhighlight lang="c" line="1"> | <syntaxhighlight lang="c" line="1"> | ||
Script 1 OPEN | Script 1 OPEN | ||
Line 16: | Line 15: | ||
} | } | ||
} | } | ||
</syntaxhighlight > | </syntaxhighlight> | ||
[[category:ACS | [[category:ACS functions]] |
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!");
}
}