This wiki is archived and useful information is being migrated to the main bzflag.org website

bz_setBZDBString

From BZFlagWiki
Jump to: navigation, search

bool bz_setBZDBString (const char* variable, const char* val, int perms = 0, bool persistent = false)


Sets a BZDB variable to a given string value.

Parameters:
variable  -  Variable name (E.g. "_shockOutRadius")
val  -  The value to set the variable to.
perms = 0  -  What to set the permission value to. (Range: 1-3. Using 0 sets it to the default [2], and using a higher number sets it to 3.)
persistent = false  -  Whether or not the variable will be persistent.
Returns:
Whether or not the set was successful.

Example[edit]

Sets the fog color to a light white color.

bz_setBZDBString("_fogColor","0.8 0.8 0.8");