SetGameModeLimit: Difference between revisions

no edit summary
(Added page for SetGameModeLimit.)
 
No edit summary
Tag: Source edit
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{ACSWarning}}
{{ACSWarning}}


int '''SetGameModeLimit''' (int ''limit'', int ''value'') {{Devfeature|3.1|alpha}}
void '''SetGameModeLimit''' (int ''limit'', int ''value'')


==Usage==
== Usage ==
Changes the value of the corresponding limit CVar to ''value''. The ''limit'' can be one of the following:
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.


Because ''timelimit'' is a float CVar, the value for '''GAMELIMIT_TIME''' must be entered as a fixed-point number. All other types accept basic integers.
== Examples ==
{{noexamples}}


[[category:ACS Functions]]
[[Category: ACS functions]]