From BZFlagWiki
Revision as of 06:36, 19 October 2011 by Sigonasr2 (Talk | contribs) (Create API Function Page. Include Example.)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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

Sets a BZDB variable to a given int value.

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.
Whether or not the set was successful.


Sets the shockwave radius to a random value between 50 and 100.