GetCVar
From Eternity Wiki
Jump to navigationJump to search
Description[edit]
This is an ACS built-in function.
Get the value of an integer or string console variable.
Usage[edit]
int GetCVar(str cvar)
str GetCVarString(str cvar)
Parameters[edit]
- cvar: console variable name
Return value[edit]
The value of the console variable, or 0 if unauthorized or inexistent.
Examples[edit]
No examples given.
Notes[edit]
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.