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

moon style intro

broken avatar :(
Created 9 years ago
by buttkicker845
0 Members and 1 Guest are viewing this topic.
1,323 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 11 March 2014
Last active: 3 years ago
Posts
264
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
Signature
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live."
×
buttkicker845's Groups
buttkicker845's Contact & Social Links
i'm making a moon style intro where you start out in one zone stay there until you get overwhelmed and then run to the teleporter and the game actually begins. i got the spawning to work but my problem is with riser zombies they just spawn at the spawner instead of rising from the ground. i know the risers are working properly because when i started working on this i just set the intro_zone to be the starting zone and the risers worked correctly
Code Snippet
Plaintext

spawn_zombies()
{
introSpawners = getEntArray("intro_spawner","targetname");
level thread award_grenades_for_survivors();
        while(level.teleport_count < level.players_playing)
{
spawn_point = introSpawners[RandomInt( introSpawners.size )];
spawn_zombie(spawn_point);
}
}

this is the script i'm using to spawn the zombies in the intro zone.
if anyone can tell me why the risers arent spawning correctly it would be greatly appreciated! thanks for any help in advance :)
broken avatar :(
×
broken avatar :(
Location: nlApeldoorn
Date Registered: 17 December 2013
Last active: 1 year ago
Posts
1,187
Respect
1,404Add +1
Forum Rank
Zombie Colossus
Primary Group
Community Scripter Elite
My Groups
More
My Contact & Social Links
More
Personal Quote
It aint much, if it aint Dutch
Signature
×
BluntStuffy's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
Oil Rig Beta Access
Oil Rig Beta Access
BluntStuffy's Contact & Social LinksBluntstuffy@BluntZombieBluntStuffyStuffyZombie
So the start_zone here:

Code Snippet
Plaintext
	// Initial Zone(s) -- Zone(s) You Want Activated At Map Start
zones = [];
zones[ zones.size ] = "start_zone";
level.DLC3.initialZones = zones;

in your mapname.gsc is not 'intro_zone' but the zone you teleport to, and you use this script to spawn zombie's before the players reach the start_zone?
Then it's maybe because your intro_zone is not activated, so the riser-structs arent active.
Last Edit: May 22, 2015, 10:36:01 pm by BluntStuffy
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 11 March 2014
Last active: 3 years ago
Posts
264
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
×
buttkicker845's Groups
buttkicker845's Contact & Social Links
is there a way to switch which zone is active and which one isnt active? ive tried setting the intro_zones's isActive variable to false and then calling enable_zone from the zone_manager to enable the new zone but it did nothing but diable the intro zone and make the game thing that there wasnt any active zones

 
Loading ...