GSC reference › bgb
bgb::is_enabled()
Script function
Server
True/false check: is enabled? BO3's decompiled scripts carry no docs for this one: the description is ours, from its name and use.
Parameters
| Name |
|---|
| name |
The decompiled scripts don't keep default values, so some of these may be optional: check the real uses below.
Real uses in BO3's scripts
Called 65 times in the decompiled scripts. A few, zombies first:
- scripts/zm/_zm.gsc, line 5525
if(smeansofdeath == "MOD_SUICIDE" && self bgb::is_enabled("zm_bgb_danger_closest")) - scripts/zm/_zm_altbody.gsc, line 243
if(self bgb::is_enabled(str_bgb)) - scripts/zm/_zm_bgb.gsc, line 2124
if(isdefined(self.var_df0decf1) && self.var_df0decf1 || (isdefined(e_reviver) && (isdefined(self.bgb) && self is_enabled("zm_bgb_near_dea... - scripts/zm/_zm_bgb_machine.gsc, line 702
if(user bgb::is_enabled("zm_bgb_shopping_free")) - scripts/zm/_zm_magicbox.gsc, line 386
if(player bgb::is_enabled("zm_bgb_disorderly_combat"))
More in bgb::
- bgb::register()bgb helper: register.
- bgb::do_one_shot_use()Runs one shot use.
- bgb::get_active()Returns the active.
- bgb::set_timer()Sets the timer.
New to GSC?
Start with the basics, or paste a compile error to get the fix.
Built-in descriptions, parameters and examples come from Treyarch's BO3 mod tools docs. Usage links point at shiversoftdev/t7-source (decompiled BO3 scripts).