GetCVar (DECORATE)

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)

Usage

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.

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))