SetGameModeLimit: Difference between revisions
(Added page for SetGameModeLimit.) |
DrinkyBird (talk | contribs) No edit summary Tag: Source edit |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{ACSWarning}} | {{ACSWarning}} | ||
void '''SetGameModeLimit''' (int ''limit'', int ''value'') | |||
==Usage== | == Usage == | ||
Changes the value of the corresponding limit CVar to ''value''. | Changes the value of the corresponding limit CVar to ''value''. | ||
*'''GAMELIMIT_FRAGS = 0''' | === Parameters === | ||
*'''GAMELIMIT_TIME = 1''' | * ''limit'': The limit to change. One of: | ||
*'''GAMELIMIT_POINTS = 2''' | ** '''GAMELIMIT_FRAGS = 0''' | ||
*'''GAMELIMIT_DUELS = 3''' | ** '''GAMELIMIT_TIME = 1''' | ||
*'''GAMELIMIT_WINS = 4''' | ** '''GAMELIMIT_POINTS = 2''' | ||
*'''GAMELIMIT_WAVES = 5''' | ** '''GAMELIMIT_DUELS = 3''' | ||
** '''GAMELIMIT_WINS = 4''' | |||
** '''GAMELIMIT_WAVES = 5''' | |||
* ''value'': The new value of the limit. For '''GAMELIMIT_TIME''', this must be a fixed-point number; for all other limits, it must be an integer. | |||
== Examples == | |||
{{noexamples}} | |||
[[ | [[Category: ACS functions]] |
Latest revision as of 00:51, 3 July 2022
This article documents a Zandronum-specific ACS feature which may not be supported by ZDoom and its other child ports. |
void SetGameModeLimit (int limit, int value)
Usage
Changes the value of the corresponding limit CVar to value.
Parameters
- limit: The limit to change. One of:
- GAMELIMIT_FRAGS = 0
- GAMELIMIT_TIME = 1
- GAMELIMIT_POINTS = 2
- GAMELIMIT_DUELS = 3
- GAMELIMIT_WINS = 4
- GAMELIMIT_WAVES = 5
- value: The new value of the limit. For GAMELIMIT_TIME, this must be a fixed-point number; for all other limits, it must be an integer.
Examples
This article lists no examples, please add one. |