Title: Re: [Tutorial]Zombie counter
Post by: YaPh1l on March 21, 2014, 10:04:14 pm
Well, first of all, this is not going to work anyway:
Code Snippet
Plaintext
level.zombie_total SetValue(level.zombie_total);
And yes, get_enemy_count() returns all living axis AI, which is most likely what you want, as zombie_total is decremented when an AI spawns. That means, zombie_total + get_enemy_count() gives the number of zombies yet to spawn in this round plus the number of zombies currently alive, which is, in total, the number of zombies remaining to be killed this round.
- Phil.
Title: Re: [Tutorial]Zombie counter
Post by: treminaor on March 22, 2014, 08:28:34 am
Either your authorship needs to be proven or the original author needs to be credited before this can be moved to the tutorials section.