zm_zonemgr::add_adjacent_zone()
Connects two zones so the second opens when a flag is set. BO3's decompiled scripts carry no docs for this one: the description is ours, from its name and use.
Signature
zm_zonemgr::add_adjacent_zone(zone_name_a, zone_name_b, flag_name, one_way = 0, zone_tag_a, zone_tag_b)
Needs #using the script that defines it (scripts/zm/_zm_zonemgr.gsc).
Parameters
| Name | Details |
|---|---|
| zone_name_a | |
| zone_name_b | |
| flag_name | |
| one_way | default: 0 |
| zone_tag_a | |
| zone_tag_b |
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 738 times in the decompiled scripts. A few, zombies first:
- scripts/zm/zm_asylum.gsc, line 403
zm_zonemgr::add_adjacent_zone("west_downstairs_zone", "west2_downstairs_zone", "power_on"); - scripts/zm/zm_castle_zones.gsc, line 33
zm_zonemgr::add_adjacent_zone("zone_v10_pad", "zone_v10_pad_door", "castle_teleporter_used"); - scripts/zm/zm_cosmodrome.gsc, line 519
zm_zonemgr::add_adjacent_zone("access_tunnel_zone", "base_entry_zone", "base_entry_group"); - scripts/zm/zm_factory.gsc, line 733
zm_zonemgr::add_adjacent_zone("receiver_zone", "outside_east_zone", "enter_outside_east"); - scripts/zm/zm_genesis_zones.gsc, line 110
zm_zonemgr::add_adjacent_zone("start_zone", "start_power_zone", "always_on");
More in zm_zonemgr::
- zm_zonemgr::add_zone_flags()Adds flags that open a zone.
- zm_zonemgr::zone_init()Initialises a zone.
- zm_zonemgr::get_zone_from_position()Returns the zone name containing a position.
- zm_zonemgr::entity_in_zone()True if the entity is in the zone.
- zm_zonemgr::enable_zone()Turns a zone on so zombies can spawn there.
- zm_zonemgr::any_player_in_zone()True if any player is in the zone.
- zm_zonemgr::get_player_zone()Returns the player zone.
- zm_zonemgr::manage_zones()Runs the zone manager from the starting zones.
- zm_zonemgr::zone_is_enabled()True if the zone is active.
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).