SetGameplaySetting: Difference between revisions
(Created a page for the SetGameplaySetting ACS function.) Tag: Source edit |
DrinkyBird (talk | contribs) Tag: Source edit |
||
Line 1: | Line 1: | ||
{{ACSWarning}} | {{ACSWarning}} | ||
{{DevfeatureWarning|version=3.2|type=an [[ACS]] function}} | |||
int '''SetGameplaySetting''' (str ''cvar'', int ''value'') {{Devfeature|3.2|alpha}} | int '''SetGameplaySetting''' (str ''cvar'', int ''value'') {{Devfeature|3.2|alpha}} |
Latest revision as of 22:33, 2 January 2023
This article documents a Zandronum-specific ACS feature which may not be supported by ZDoom and its other child ports. |
This article documents an ACS function which is only available in development builds of Zandronum 3.2 and newer. |
int SetGameplaySetting (str cvar, int value) (development version 3.2-alpha and above only)
Usage
Changes the value of any engine-built CVar or flag that's allowed in the GAMEMODE lump, with the exception of sv_maxlives and sv_maxteams. Note that float CVars (e.g. sv_aircontrol or sv_gravity) require that the value be passed as a fixed-point number.
Return value
Returns 1 if the CVar was successfully changed, 0 on failure.
Examples
This article lists no examples, please add one. |