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 stop zones

broken avatar :(
Created 12 years ago
by Dust
0 Members and 1 Guest are viewing this topic.
3,731 views
broken avatar :(
×
broken avatar :(
The King of Zombies
Location: usLouisiana
Date Registered: 24 June 2013
Last active: 6 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 Linksdust103194MrZ0mbiesFanaticMrZ0mbiesFanatic
Okay I am nearly ready to release my map, just got one more question, okay i have a teleporter that once the player buys it it teleports them to a room where they have to survive before the game will end. how would i make it so the zombies stop spawning in the other zones while they are in that room? since its a room off of the map it would be impossible for the zombies to travel over there so they will just glitch out.
This topic contains a post which is marked as the Best Answer. Click here to view it.
broken avatar :(
×
broken avatar :(
[UGX] Founder
Location: usBay Area, California
Date Registered: 24 June 2011
Last active: 3 years ago
Posts
5,544
Respect
6,646Add +1
Forum Rank
Immortal
Primary Group
UGX Administrator
My Groups
More
My Contact & Social Links
More
Signature
If Java had true garbage collection, most programs would delete themselves upon execution.
×
treminaor's Groups
UGX Administrator
UGX Team Member
UGX Site Moderator Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
Okay I am nearly ready to release my map, just got one more question, okay i have a teleporter that once the player buys it it teleports them to a room where they have to survive before the game will end. how would i make it so the zombies stop spawning in the other zones while they are in that room? since its a room off of the map it would be impossible for the zombies to travel over there so they will just glitch out.
Set an interest point for them to run towards which is out of the players' view. This assumes that all players will always be teleported. If there are certain cases where some players are not teleported, you should not do this as the zombies will work properly in those situations.

To set an interest point, use this:
Code Snippet
Plaintext
startspawnpoint = getstructarray( "initial_spawn_points", "targetname" )[0];
gotostruct = spawn("script_origin", startspawnpoint.origin);
gotostruct create_zombie_point_of_interest( 100000, 96, 10000 );
That code will send all the zombies towards the spawnpoint of player 0 (host).
broken avatar :(
×
broken avatar :(
The King of Zombies
Location: usLouisiana
Date Registered: 24 June 2013
Last active: 6 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 Linksdust103194MrZ0mbiesFanaticMrZ0mbiesFanatic
Set an interest point for them to run towards which is out of the players' view. This assumes that all players will always be teleported. If there are certain cases where some players are not teleported, you should not do this as the zombies will work properly in those situations.

To set an interest point, use this:
Code Snippet
Plaintext
startspawnpoint = getstructarray( "initial_spawn_points", "targetname" )[0];
gotostruct = spawn("script_origin", startspawnpoint.origin);
gotostruct create_zombie_point_of_interest( 100000, 96, 10000 );
That code will send all the zombies towards the spawnpoint of player 0 (host).


That code didnt seem to help me, they still spawn in the spawn room then they just die off after a little bit, i want them not to spawn in there at all to just spawn in the room that they get teleported to. I already added zombies in that room so they will still get zombies, which they do, a couple of them but most of them spawn in the spawn room so i cant kill them
broken avatar :(
×
broken avatar :(
drago
Location: mx
Date Registered: 5 July 2013
Last active: 7 years ago
Posts
941
Respect
Forum Rank
The Decider
Primary Group
Member
My Contact & Social Links
More
×
jjbradman's Groups
jjbradman's Contact & Social Linksjjbradmanjjbradmanjjbradman
i thinks theres a disable_zone() function in zone manager gsc but im not sure .-. and have you tried by deleting the zone with an script like
Code Snippet
Plaintext
zone delete();
Marked as best answer by thezombiekilla6 12 years ago
broken avatar :(
×
broken avatar :(
Location: usNC
Date Registered: 19 June 2013
Last active: 9 years ago
Posts
261
Respect
Forum Rank
Mr. Elemental
Primary Group
Mapper Elite
My Groups
More
My Contact & Social Links
More
×
GrantDaddy007's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Mapper Elite Has shown excellence and experience in the area of custom mapping in the UGX-Mods community.
GrantDaddy007's Contact & Social LinksGrantDaddyGrantdaddy007
Okay I am nearly ready to release my map, just got one more question, okay i have a teleporter that once the player buys it it teleports them to a room where they have to survive before the game will end. how would i make it so the zombies stop spawning in the other zones while they are in that room? since its a room off of the map it would be impossible for the zombies to travel over there so they will just glitch out.

Make a buyable debris going into that last room... have that open to the new(last) Zone. In your mapname.gsc call that last zone "true" like this:

Code Snippet
Plaintext
add_adjacent_zone( "zone6", "zone7", "enter_zone7", true );

This is how I did it in Zombie Train...


If you need help setting it up I can help you... Hit me up on Skype!  ;)
broken avatar :(
×
broken avatar :(
The King of Zombies
Location: usLouisiana
Date Registered: 24 June 2013
Last active: 6 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 Linksdust103194MrZ0mbiesFanaticMrZ0mbiesFanatic
Make a buyable debris going into that last room... have that open to the new(last) Zone. In your mapname.gsc call that last zone "true" like this:

Code Snippet
Plaintext
add_adjacent_zone( "zone6", "zone7", "enter_zone7", true );

This is how I did it in Zombie Train...


If you need help setting it up I can help you... Hit me up on Skype!  ;)

I tried that and it didnt seem to work
broken avatar :(
×
broken avatar :(
Location: usNC
Date Registered: 19 June 2013
Last active: 9 years ago
Posts
261
Respect
Forum Rank
Mr. Elemental
Primary Group
Mapper Elite
My Groups
More
My Contact & Social Links
More
×
GrantDaddy007's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Mapper Elite Has shown excellence and experience in the area of custom mapping in the UGX-Mods community.
GrantDaddy007's Contact & Social LinksGrantDaddyGrantdaddy007
Skype?
broken avatar :(
×
broken avatar :(
The King of Zombies
Location: usLouisiana
Date Registered: 24 June 2013
Last active: 6 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 Linksdust103194MrZ0mbiesFanaticMrZ0mbiesFanatic
ya i'm on
broken avatar :(
×
broken avatar :(
☭ Soviet Commander ☭
Location: us
Date Registered: 13 August 2012
Last active: 10 years ago
Posts
2,789
Respect
Forum Rank
King of the Zombies
Primary Group
Community Daedra
My Groups
More
My Contact & Social Links
More
Signature
Let's keep this thread on topic from here on in. -DBZ

+1 to off-topic reply -DBZ

lmao. Too funny.

Goliath Script Placer: http://ugx-mods.com/forum/index.php/topic,11234.msg125257/topicseen.html#new

"...Christ, people. Learn C, instead of just stringing random characters
together until it compiles (with warnings)..."

-Linus Torvalds
×
daedra descent's Groups
Community Daedra
Community Daedra
daedra descent's Contact & Social LinksBlueSoviet
does ZONE_NAME.is_active = false; do anything by chance?
broken avatar :(
×
broken avatar :(
The King of Zombies
Location: usLouisiana
Date Registered: 24 June 2013
Last active: 6 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 Linksdust103194MrZ0mbiesFanaticMrZ0mbiesFanatic
grantdaddy is helping me. thanks anyway

 
Loading ...