SetGameplaySetting

From Zandronum Wiki
Revision as of 17:53, 29 November 2022 by AKMDM (talk | contribs) (Created a page for the SetGameplaySetting ACS function.)
(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.

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.