
Posts
2,148
Respect
350Add +1
Forum Rank
King of the Zombies
Primary Group
Donator ♥
Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
init
{
thread ZombieCounter();
zombie_death_event( zombie )
{
zombie waittill( "death" );
RoundStart(){
level.zombieCounterText = "Zombies Left: ";
level.ZombiesLeft SetText(level.zombieCounterText + "None Yet!");
UpdateZombieCount( "intro_hud_done", 3);
while(1){
UpdateZombieCount("between_round_over", 1);
wait(.1);
}
}
UpdateZombieCount(notification, waiting){
level waittill(notification);
wait(waiting);
numberOfZombies = level.zombie_total + get_enemy_count();
level.ZombiesLeft SetText(level.zombieCounterText + numberOfZombies);
}
ZombieCounter(){
level.ZombiesLeft = create_simple_hud();
level.ZombiesLeft.horzAlign = "center";
level.ZombiesLeft.vertAlign = "middle";
level.ZombiesLeft.alignX = "center";
level.ZombiesLeft.alignY = "middle";
level.ZombiesLeft.y = 230;
level.ZombiesLeft.x = -1;
level.ZombiesLeft.foreground = 1;
level.ZombiesLeft.fontscale = 8.0;
level.ZombiesLeft.alpha = 1;
level.ZombiesLeft.color = ( 0.423, 0.004, 0 );
thread RoundStart();
}
zombie_death_event( zombie )
{
zombie waittill( "death" );
level.ZombiesLeft SetText(level.zombieCounterText + (level.zombie_total + get_enemy_count()));
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() UGX V.I.P. | |
![]() | Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. |
![]() BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
I'm just going to leave this here.
http://custom-zombies.com/Forums/index.php?topic=23.0
![]() | Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. |
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
![]() BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. |
![]() | Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. |
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
![]() BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
Seperate hud for the words `Zombies remaining` another for the count, very old script.
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
Thanks. I'll PM OP with alternative solution, with one hud element, I've made, if they are interested.
![]() | Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. |
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
![]() BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
Sure I would be interested in that, this is just the script ive used for ages now, and yes it is very old. Would be nice to have a updated version
Updated the tutorial with the one MakeCents gave me
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
zombie_death_event( zombie )
{
zombie waittill( "death" );
level.ZombiesLeft SetText(level.zombieCounterText + (level.zombie_total + get_enemy_count()));
![]() | Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. |
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
![]() BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
Code SnippetPlaintextzombie_death_event( zombie )
{
zombie waittill( "death" );
level.ZombiesLeft SetText(level.zombieCounterText + (level.zombie_total + get_enemy_count()));
you missed a } at end of bottom line
zombie_death_event( zombie )
{
zombie waittill( "death" );
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. |
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
![]() BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
well in ugx chat someone said it gave them bad sytax and when they put } on last line it fixed it