GetCvar

From ZDoom Wiki
Jump to: navigation, search

float GetCvar(cvar)

Usage

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

Parameters

  • 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.

Examples

if (GetCVar(sv_infiniteammo))