GetUserCVarString (ACS)

From ZDoom Wiki
Jump to navigation Jump to search


string GetUserCVarString (int playernumber, str cvar)

Usage

Returns the value of a particular user cvar of a specific player.

Parameters

  • playernumber: The number of the player (0 to 7).
  • cvar: name of a console variable to get the value from.

Return value

(Verification needed)

The value of the specified console variable. The console variable must also be a proper user variable, such as the ones found in Player settings. For numerical values, see GetUserCVar instead. Also note that you can create your own user variables by using the CVARINFO lump.

If no such console variable exists, if the console variable is not a proper user variable, or if the player is not in game (or the number is not a valid player number) it will return an empty string.

Examples

Nuvolachalk.png Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please add them. This will make it easier to understand for future authors seeking assistance. Your contributions are greatly appreciated.


See also

Console variable functions
GetCVar SetCVar
GetCVarString SetCVarString
GetUserCVar SetUserCVar
GetUserCVarString SetUserCVarString
CVARINFO