UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Zones and doors

broken avatar :(
Created 8 years ago
by MelonDragon
0 Members and 1 Guest are viewing this topic.
2,978 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 17 February 2016
Last active: 8 years ago
Posts
4
Respect
Forum Rank
Fresh Corpse
Primary Group
Member
×
MelonDragon's Groups
MelonDragon's Contact & Social Links
Ok so first off i looked everywhere for this but i cant find an answer so this is what i have i got a door with
script_flag "enter_zone2"

i also have the start_zone and zone2 set up like every video i have looked at and when i access the gsc file to configure i put this down in the right location
function usermap_test_zone_init()
{
   zm_zonemgr::add_adjacent_zone( "start_zone",      "zone2",      "enter_zone2" );

}   

what am i missing i run the game and can open the door but i keep dying while walking in!?? any solutions also this first time making map so give me a little slack :D
broken avatar :(
×
broken avatar :(
Location: ca
Date Registered: 24 September 2016
Last active: 7 years ago
Posts
3
Respect
Forum Rank
Fresh Corpse
Primary Group
Member
My Contact & Social Links
More
×
TheCanadianNooB's Contact & Social Links35 Willwood Cres.TheCanadianNooB
you have to //To Zone 2 from start_zone

like this:

function usermap_test_zone_init()
{
   To Zone 2 from start_zone
   zm_zonemgr::add_adjacent_zone( "start_zone",      "zone2",      "enter_zone2" );
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 12 September 2016
Last active: 3 years ago
Posts
306
Respect
Forum Rank
Perk Hacker
Primary Group
Member
My Contact & Social Links
More
×
reckfullies's Groups
reckfullies's Contact & Social LinksReckfulliesReckfullies
Make sure you did the right kvp on the zone.

Do add kvp and do
Key: script_noteworthy
Value: player_volume

If nothing else works try going into the main function and add init_zones[1] = "zonename";
broken avatar :(
×
broken avatar :(
Location: us?
Date Registered: 21 August 2016
Last active: 2 years ago
Posts
80
Respect
Forum Rank
Rotting Walker
Primary Group
Member
×
All0utWar's Groups
All0utWar's Contact & Social Links
you have to //To Zone 2 from start_zone

like this:

function usermap_test_zone_init()
{
   To Zone 2 from start_zone
   zm_zonemgr::add_adjacent_zone( "start_zone",      "zone2",      "enter_zone2" );

What? All you did was add a comment. Comments aren't seen by the game.

But yeah what reckfullies said, make sure that KVP is on the zone2 volume. As well as the KVP of "target / ZONENAME_spawners"
broken avatar :(
×
broken avatar :(
Location: au
Date Registered: 9 October 2016
Last active: 5 years ago
Posts
53
Respect
Forum Rank
Rotting Walker
Primary Group
Donator ♥
My Groups
More
×
kaizokuroof's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
kaizokuroof's Contact & Social Links
Hello! I'm new here, but as I was developing a map I'm working on, I found that the tutorials available, even though I followed them perfectly, didn't give me the result I needed. I continued to die when entering the zone and I was pulling my hair out.

Under function main()

There is an aray - you need to manually add your zones in there, giving them a unique number too. Once you've added them to this array, you also need to do the adjacent tiles (so zombies spawn where you need them spawn).

Code Snippet
Plaintext

function main()
{
zm_usermap::main();

level._zombie_custom_add_weapons =&custom_add_weapons;

//Setup the levels Zombie Zone Volumes
level.zones = [];
level.zone_manager_init_func =&usermap_test_zone_init;
init_zones[0] = "start_zone";
init_zones[1] = "YOUR ZONE HERE";
init_zones[2] = "AND HERE";

level thread zm_zonemgr::manage_zones( init_zones );

level.pathdist_type = PATHDIST_ORIGINAL;
}
broken avatar :(
×
broken avatar :(
Location: us?
Date Registered: 21 August 2016
Last active: 2 years ago
Posts
80
Respect
Forum Rank
Rotting Walker
Primary Group
Member
×
All0utWar's Groups
All0utWar's Contact & Social Links
Hello! I'm new here, but as I was developing a map I'm working on, I found that the tutorials available, even though I followed them perfectly, didn't give me the result I needed. I continued to die when entering the zone and I was pulling my hair out.

Under function main()

There is an aray - you need to manually add your zones in there, giving them a unique number too. Once you've added them to this array, you also need to do the adjacent tiles (so zombies spawn where you need them spawn).

Code Snippet
Plaintext

function main()
{
zm_usermap::main();

level._zombie_custom_add_weapons =&custom_add_weapons;

//Setup the levels Zombie Zone Volumes
level.zones = [];
level.zone_manager_init_func =&usermap_test_zone_init;
init_zones[0] = "start_zone";
init_zones[1] = "YOUR ZONE HERE";
init_zones[2] = "AND HERE";

level thread zm_zonemgr::manage_zones( init_zones );

level.pathdist_type = PATHDIST_ORIGINAL;
}

Just so you're aware, if you do this, all of these zones will become active at the start of the game, allowing zombies to spawn in unopened areas.
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 12 September 2016
Last active: 3 years ago
Posts
306
Respect
Forum Rank
Perk Hacker
Primary Group
Member
My Contact & Social Links
More
×
reckfullies's Groups
reckfullies's Contact & Social LinksReckfulliesReckfullies
Just so you're aware, if you do this, all of these zones will become active at the start of the game, allowing zombies to spawn in unopened areas.

Adding zones like this doesn't seem to be required unless the zones are not touching.

I have only needed to add this when I was using a teleporter that went to a zone that wasn't touching the one i was in.
broken avatar :(
×
broken avatar :(
Location: au
Date Registered: 9 October 2016
Last active: 5 years ago
Posts
53
Respect
Forum Rank
Rotting Walker
Primary Group
Donator ♥
My Groups
More
×
kaizokuroof's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
kaizokuroof's Contact & Social Links
Just so you're aware, if you do this, all of these zones will become active at the start of the game, allowing zombies to spawn in unopened areas.

Really? I haven't had this problem. I had a problem where by even if the zones were touching, none but the start_zone (which is included in the array) was working and I would die instantly when entering the additional zone.

When I added them, it was fine - The zombies spawned where I wanted them to spawn and each zone became active when I bought/activated the zone I was trying to.

The exception to this, was that Risers targeting flesh would spawn in zones that I didn't want active and I ended up changing my map to accommodate this, as I couldn't figure out why. Perhaps this is why? But it still doesn't explain the zombies targeting windows working.

 
Loading ...