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

how to make fourth parameter zone option work for the inital zone

broken avatar :(
Created 8 years ago
by Fire Level One
0 Members and 1 Guest are viewing this topic.
1,408 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 17 October 2015
Last active: 3 years ago
Posts
47
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Groups
More
My Contact & Social Links
More
×
Fire Level One's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Fire Level One's Contact & Social LinksFireLevelOneFireLevelOne
I'm making a new post for this since my original post [http://ugx-mods.com/forum/index.php?topic=11650.msg129081#msg129081] was answered but brought about a new question. how do you make this
There is actually a fourth parameter that you can add in the adjacent zone function in your mapname.gsc that does that.

Code Snippet
Plaintext
add_adjacent_zone( "zone9", "end_zone", "enter_end_zone", true );

You have the first parameter which is your first zone, the second which is your adjacent zone, the third which is the flag to enter the zone, but you also have a 4th one that is set to false by default.

If you put it to true, that sets it so the zombies will only spawn in that zone if a player is currently in that zone.
You can just set all the zones to true, and then the zombies will only spawn in the zone you are currently in.


BTW congrats on 20 posts. You are now a "regular" ;)
work for the initial zone or start_zone? (as it does not)
This topic contains a post which is marked as the Best Answer. Click here to view it.
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 4 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
Signature
×
MakeCents's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
The fourth parameter simple tells it to add or not to add the the first parameter (zone) to the second parameters adjacent zone array. You can review more of this in the add_adjacent_zone function in _zombiemode_zone_manager.gsc

The actual way to only get zombies spawning in the zone your in is to add all zones to the zone array with no adjacent zones.
Last Edit: July 05, 2016, 12:29:50 am by MakeCents
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 17 October 2015
Last active: 3 years ago
Posts
47
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Groups
More
My Contact & Social Links
More
×
Fire Level One's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Fire Level One's Contact & Social LinksFireLevelOneFireLevelOne
The fourth parameter simple tells it to add or not to add the the first parameter (zone) to the second parameters adjacent zone array. You can review more of this in the add_adjacent_zone function in _zombiemode_zone_manager.gsc

The actual way to only get zombies spawning in the zone your in is to add all zones to the zone array with no adjacent zones.
I done goofed.
The actual way to only get zombies spawning in the zone your in is to add all zones to the zone array with no adjacent
How do I do that?
Marked as best answer by Fire Level One 8 years ago
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 4 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
×
MakeCents's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Find this in nazi_zombie_mapname:

Code Snippet
Plaintext
zones[ zones.size ] = "start_zone";

Add each zone like that

Code Snippet
Plaintext
zones[ zones.size ] = "start_zone";
zones[ zones.size ] = "zone1";
zones[ zones.size ] = "zone2";



This should make each zone active and spawn zombies when in them, only in them.

You would have no add_adjacent_zone lines. And no script_flags.
Last Edit: July 05, 2016, 02:03:09 am by MakeCents

 
Loading ...