SetGameplaySetting

From Zandronum Wiki
Revision as of 22:33, 2 January 2023 by DrinkyBird (talk | contribs) (Add Template:DevfeatureWarning)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.