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 zombie only spawn in the current zone

broken avatar :(
Created 8 years ago
by Fire Level One
0 Members and 1 Guest are viewing this topic.
4,549 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
Does anybody know how to make it where the zombies will only spawn in the zone your currently in?
broken avatar :(
×
broken avatar :(
Location: br
Date Registered: 10 December 2013
Last active: 2 years ago
Posts
159
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
×
Linoxet's Groups
Linoxet's Contact & Social LinksTutizillalinoxetbanguela
Have you tried something like not having zones adjacent to each other?
Marked as best answer by Fire Level One 8 years ago
broken avatar :(
×
broken avatar :(
The King of Zombies
Location: usLouisiana
Date Registered: 24 June 2013
Last active: 4 years ago
Posts
2,148
Respect
Forum Rank
King of the Zombies
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Signature
Donate to me if you enjoy my work. https://www.paypal.me/thezombiekilla6
×
Dust's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Dust's Contact & Social LinksMrZ0mbiesFanaticdust103194MrZ0mbiesFanatic
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" ;)
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
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" ;)
Wow I didn't know about that fourth parameter, thank you!
BTW congrats on 20 posts. You are now a "regular" ;)
Thanks  ;D
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 24 February 2014
Last active: 2 years ago
Posts
240
Respect
Forum Rank
Mr. Elemental
Primary Group
Community Mapper
My Groups
More
×
josemassacre's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
josemassacre's Contact & Social Links
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" ;)
I was wondering the same thing about how to make zombies spawn in the current zone so thank you very much for the answer!
broken avatar :(
×
broken avatar :(
The King of Zombies
Location: usLouisiana
Date Registered: 24 June 2013
Last active: 4 years ago
Posts
2,148
Respect
Forum Rank
King of the Zombies
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
×
Dust's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Dust's Contact & Social LinksMrZ0mbiesFanaticdust103194MrZ0mbiesFanatic
Wow I didn't know about that fourth parameter, thank you!

I was wondering the same thing about how to make zombies spawn in the current zone so thank you very much for the answer!

No problem! Happy to help. I only found out about the 4th parameter a few months ago, and it doesn't seem like many people know about it.

Tutorial time? ;)
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 24 February 2014
Last active: 2 years ago
Posts
240
Respect
Forum Rank
Mr. Elemental
Primary Group
Community Mapper
My Groups
More
×
josemassacre's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
josemassacre's Contact & Social Links
No problem! Happy to help. I only found out about the 4th parameter a few months ago, and it doesn't seem like many people know about it.

Tutorial time? ;)
I honestly think it'd be a good idea to do a short one so more people can see it. It would help a lot of people who use bigger zones and for people just looking for a little more of a hectic experience :)
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
well it took me a while, but I noticed setting fourth parameter to true wasn't working.
I tried this
Have you tried something like not having zones adjacent to each other?
by setting up "dummy_zones" which don't exist but separate them,
Code Snippet
Plaintext
add_adjacent_zone( "start_zone", "dummy_zone", "enter_zone1" );
add_adjacent_zone( "dummy_zone", "zone1", "enter_zone1"  );
and it made it where the zombies only spawn in zone1. So I decided to separate "start_zone" and "zone1" by another dummy zone
Code Snippet
Plaintext
add_adjacent_zone( "start_zone", "dummy_zone", "enter_zone1" );
add_adjacent_zone( "dummy_zone", "dummy_zone2", "enter_zone1"  );
add_adjacent_zone( "dummy_zone2", "zone1", "enter_zone1" );
But then the zombies only spawned in start_zone.
I think I'm gonna need some more professional help  :poker:
Last Edit: July 04, 2016, 08:08:41 pm by Fire Level One
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 24 February 2014
Last active: 2 years ago
Posts
240
Respect
Forum Rank
Mr. Elemental
Primary Group
Community Mapper
My Groups
More
×
josemassacre's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
josemassacre's Contact & Social Links
well it took me a while, but I noticed setting fourth parameter to true wasn't working.
I tried thisby setting up "dummy_zones" which don't exist but separate them,
Code Snippet
Plaintext
add_adjacent_zone( "start_zone", "dummy_zone", "enter_zone1" );
add_adjacent_zone( "dummy_zone", "zone1", "enter_zone1"  );
and it made it where the zombies only spawn in zone1. So I decided to separate "start_zone" and "zone1" by another dummy zone
Code Snippet
Plaintext
add_adjacent_zone( "start_zone", "dummy_zone", "enter_zone1" );
add_adjacent_zone( "dummy_zone", "dummy_zone2", "enter_zone1"  );
add_adjacent_zone( "dummy_zone2", "zone1", "enter_zone1" );
But then the zombies only spawned in start_zone.
I think I'm gonna need some more professional help  :poker:
I noticed setting up the true parameter doesn't work for your start zone(because it's not set up the same) I'm sure there is a way for it but It works for every other zone for me
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 noticed setting up the true parameter doesn't work for your start zone(because it's not set up the same) I'm sure there is a way for it but It works for every other zone for me
Yeah when I had the true parameter set they would only spawn in zone1 if I was there but when I was in start zone they'd spawn in zone1 as well.  :(
Last Edit: July 04, 2016, 10:37:54 pm by Fire Level One
broken avatar :(
×
broken avatar :(
The King of Zombies
Location: usLouisiana
Date Registered: 24 June 2013
Last active: 4 years ago
Posts
2,148
Respect
Forum Rank
King of the Zombies
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
×
Dust's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Dust's Contact & Social LinksMrZ0mbiesFanaticdust103194MrZ0mbiesFanatic
Yeah when I had the true parameter set they would only spawn in zone1 if I was there but when I was in start zone they'd spawn in zone1 as well.  :(

I didnt realize that it does not work for start_zone, since the only time I have used it was for one of the end zones. I am not sure how you could get it set up for your start_zone, maybe someone else could help with that?
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 didnt realize that it does not work for start_zone, since the only time I have used it was for one of the end zones. I am not sure how you could get it set up for your start_zone, maybe someone else could help with that?
Hopefully

 
Loading ...