GetCVar
From Eternity Wiki
Jump to navigationJump to search
Description
This is an ACS built-in function.
Get the value of an integer or string console variable.
Usage
int GetCVar(str cvar)
str GetCVarString(str cvar)
Parameters
- cvar: console variable name
Return value
The value of the console variable, or 0 if unauthorized or inexistent.
Examples
No examples given.
Notes
This only works with server variables affecting all players, otherwise it will display an error and return 0.
This function's identification in zspecial.acs is: ACC internal for GetCVar, -56 for GetCVarString.