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.