From ZDoom Wiki
(Redirected from GetCvar)
Jump to: navigation, search

(This is for the DECORATE function. For the ACS function please click here; for the ZScript function please click here.)

float GetCvar(cvar)


Gets a server-accessible cvar, whether it's an internal or user cvar, for use in DECORATE.

This can also be used for custom "user" cvars defined in CVARINFO.


  • cvar: The cvar to retrieve. This will not work on anything other than server accessible cvars.

Return Value

Returns the server cvar as a float.


if (GetCVar(sv_infiniteammo))