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

Make zombies only spawn in the zone that you are currently in

broken avatar :(
Created 8 years ago
by Dust
0 Members and 1 Guest are viewing this topic.
4,987 views
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
So, someone just asked a question, "How to make zombies only spawn in the room that you are currently in", and it seems a lot of people don't know about this. I just recently found out about it so thought I would share it with the rest of you.

In your
Code Snippet
Plaintext
dlc3_zone_init()
function in mapname.gsc, where you add your adjacent zones. There is a fourth parameter that, when set to true, will only spawn the zombies in the zone, if you are in that zone This is useful, if you teleport and you want the zombies to spawn in the "teleport_zone", but not the other zones.

To get it working, you just need to add true after your script_flag parameter, like so.

Code Snippet
Plaintext
add_adjacent_zone( "start_zone","zone1","enter_zone1",true );

And that will make it so the zombies will only spawn in a particular zone, if a player is in that zone.

Last Edit: June 29, 2016, 04:14:04 am by Dust
broken avatar :(
×
broken avatar :(
Location: fi
Date Registered: 25 June 2013
Last active: 8 months ago
Posts
3,997
Respect
1,024Add +1
Forum Rank
Eviscerator
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
×
HitmanVere's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Moved to Tutorials
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 4 years ago
Posts
6,877
Respect
1,004Add +1
Forum Rank
Immortal
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Signature
If you want scripts / features made for you, then contact me by PM or email / skype etc
it will cost you tho so if you have no intention of reciprocating don't even waste my time ;)
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social Links[email protected]HarryBo21HarryBo000
Everything I've seen about this insinuates it's for "one way"

Just to indicate one leads in the other but not "back" to the first - so would stop zombies spawning in that zone but not others?

I'll check the function later but I'm pretty sure that's what it does ( example sliding in to one zone, if in the zone you slide "from" they won't spawn in the zone you slide "to" even if it's active )
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
Everything I've seen about this insinuates it's for "one way"

Just to indicate one leads in the other but not "back" to the first - so would stop zombies spawning in that zone but not others?

I'll check the function later but I'm pretty sure that's what it does ( example sliding in to one zone, if in the zone you slide "from" they won't spawn in the zone you slide "to" even if it's active )

This ^ is true, but if all zones are one way, then no zone is adjacent, therefore will only spawn in that zone, I would assume? if it is working? Personally I would just add each zone to the initial zones array, in mapname.gsc, which will make this happen also.

Code Snippet
Plaintext
zones[ zones.size ] = "this zone"
//...
level.DLC3.initialZones = zones;

But if it works, sweet! Probably easier for most.
Last Edit: June 29, 2016, 12:18:52 pm by MakeCents
broken avatar :(
×
broken avatar :(
Location: england
Date Registered: 14 January 2017
Last active: 1 month ago
Posts
58
Respect
Forum Rank
Rotting Walker
Primary Group
Member
My Contact & Social Links
More
×
OwenC's Groups
OwenC's Contact & Social LinksOwenCroftxDDemonScriptzOwenCroft98OwenC137OwenCroft
Thanks for this :)
broken avatar :(
×
broken avatar :(
Location: 00persia
Date Registered: 20 December 2012
Last active: 1 year ago
Posts
66
Respect
Forum Rank
Rotting Walker
Primary Group
Member
×
nikfar1's Groups
nikfar1's Contact & Social Links
Nice tut .this very necessary for big map.thanks alot

 
Loading ...