Everybody seems to have trouble with zones, even me a few days ago, so I made this tutorial on it. Hope you can work through it I
tried to make it as simple as possible. Step 1 -
First you want to place a info_volume, right click on the grid -->info-->volume
Make this the size of the inside of your room like Cinnober said, and give it these kvps (This is for your starting room)
1) "targetname" "start_zone"
2) "target" "start_zone_spawners" (without the quotes, obviously)Step 2 -
Next, you want to make your zombie spawner, with the KVPs from Hercules Easy Zombie Tut. Then add this kvp:
1) "targetname" "start_zone_spawners"
These zombies will get a yellow line to the center of the zone, that's what you want Step 3 -
Next you have a door/debris, connected to another zone. Lets call this zone "zone1"
We want to set a flag saying "Hey! the player is now going in this zone!" so we are going to add a KVP to the TRIGGER
of the door.
1) "script_flag" "enter_zone1"
This does what is described in the quote above Step 4 -
Make your second zone, and set the KVPs to the following:
1) "targetname" "zone1"
2) "target" "zone1_spawners" ******IMPORTANT****** YOU ALWAYS NEED THE "_spawners" In the target's name.
Then make your zombie spawn for that area, making sure that the KVP is:
1) "targetname" "zone1_spawners"
This should do the yellow line thingy again Step 5 -
You are pretty much done now, except for one thing. You must edit your nazi_zombie_MAPNAME.gsc file located in your
[root]\raw\maps folder to set your zone names. The code you want to edit is near the bottom, and looks like this:
add_adjacent_zone( "start_zone", "zone1", "enter_zone1" );
add_adjacent_zone( "zone1", "zone2", "enter_zone2" );
Here is a breakdown of the code:
add_adjacent_zone( "start_zone", "Yellow_zone", "enter_Yellow_zone" );
This tells you that you are adding a zone adjacent to another.
This is the zone you are leaving.
This is the zone you are entering.
This is the flag you call to on your door, saying where you are entering.Step 6 - DO A CHECK TO MAKE SURE EVERYTHING IS THE SAME
This will save you from a constant headache. Everything must be case sensitive the same, so make sure that you have it right!
(These include the zombie spawn, zone, door trigger, and .gsc)
Good Luck Zoning!