Modme Forums

Stop Zombies spawns in certain zone

Game Modding | Call of Duty: Black Ops 3 | Scripting


genrix41:

The problem is I have two zones - zone 1 and zone 2.

The zone2 is accessible from zone1. However Zone1 is not accessible from zone2.

So, if I opened zone2, and the players are in zone1, zombies spawn logic is spawning them inside zone2, and they cant get out of there to attack players in zone1.

How can I stop zombies from spawning in zone2, if there is no players?

P.S. I have giant cleanup script installed in my map.


Spiki:

zm_zonemgr::add_adjacent_zone("zone2 ", "zone1", "enter_lab", 1);

the 1 means one way


genrix41:

zm_zonemgr::add_adjacent_zone("zone2 ", "zone1", "enter_lab", 1);

the 1 means one way


Hm. I Tried this:
zm_zonemgr::add_adjacent_zone("zone1", "zone2", "enter_zone2", 1);

Didn't worked out. Zombies still spawning in the zone2.

Tried a reversal:
zm_zonemgr::add_adjacent_zone("zone2", "zone1", "enter_zone2", 1);

Same. Am I doing something wrong?


genrix41:

Props to MikeyRay and Slayin from Discord channel.
The solution:
Don’t make zone2 an adjacent zone to zone 1.
So I removed this line:

zm_zonemgr::add_adjacent_zone("zone1", "zone2", "enter_zone2", 1);

And added this line under "init_zones[0] = "start_zone";"

init_zones[1] = "zone2";