Using this script apparently breaks triggers. Me and a friend had to remove it in order for custom triggers to work.
This shouldn't break triggers since it doesn't reference them in any way.
The problem might be is you are not threading the function, OP should update the script.
This would only be a problem if you are trying to initialize other scripts/functions below this one, which is probably what you are doing if you have custom triggers.
Change the main function to this:
Title: Re: BO3 Zombie Counter
Post by: DuBCraft21 on October 11, 2016, 11:57:33 pm
I have a bit of a question... why in the get_zw_count function, why do you write:
instead of:
This way is more efficient because the game doesn't need to handle memory allocation, as well as the counter which in your code is just hidden in the array. This is also more efficient because it doesn't have to handle as many function calls as the currently standing code does.
Title: Re: BO3 Zombie Counter
Post by: kaizokuroof on October 12, 2016, 08:25:29 am
First of all - Thanks for releasing your script! Second of all, is this script just counting the zombies that have spawned? So it's max number would be that of 24 (the total possible instances of zombies on a map at one time).
First of all - Thanks for releasing your script! Second of all, is this script just counting the zombies that have spawned? So it's max number would be that of 24 (the total possible instances of zombies on a map at one time).
Not a true representation of the zombies to go?
I tried replacing your code, but it did not work for me?
this script is to get the total amount of zombies for the round, not the total amount of zombies alive.
Title: Re: BO3 Zombie Counter
Post by: Rampage_619 on October 12, 2016, 07:09:07 pm
I have a bit of a question... why in the get_zw_count function, why do you write:
instead of:
This way is more efficient because the game doesn't need to handle memory allocation, as well as the counter which in your code is just hidden in the array. This is also more efficient because it doesn't have to handle as many function calls as the currently standing code does.
Dubcraft, why increase it one by one, when you can just take the entire array......
Title: Re: BO3 Zombie Counter
Post by: reckfullies on October 13, 2016, 04:33:38 pm
Dubcraft, why increase it one by one, when you can just take the entire array......
There is no point in using an array if you are still going to get the same results using an integer variable along with presumably better code performance.
It is essentially the same except you are getting the array every time when you could just be adding to a variable.
Title: Re: BO3 Zombie Counter
Post by: Minepro14 on November 12, 2016, 05:49:04 pm
what i should change if i want that the counter shows me the total amount of zombies of the round??
Title: Re: BO3 Zombie Counter
Post by: SponsoredByCloro on November 21, 2016, 05:28:34 pm
The script just counts how many zombies are alive, not how many left in the current round.
Title: Re: BO3 Zombie Counter
Post by: Rosasau100 on January 16, 2017, 05:09:23 pm