I didn't look into spawner when I did this, cause I'm a bit gun shy from the previous bugs and stuff, perhaps after beta, but what I did in the mean time is get an array of zombies continuously, in a while loop, and then thread a function on each of them in a foreach loop. In this function I would check if a specific attribute was defined, and if it wasn't, then I would define it and thread a function that would waittill death and do what I wanted, or what ever you want to do with this zombie, waittill damage or whatever. If the attribute was defined, I would simply return, meaning I was already tracking this zombies life.
In waw I didn't do things this way, I edited zombiemode or spawner, I forget already which, when they were damaged I would thread my function with my checks.
I didn't look into spawner when I did this, cause I'm a bit gun shy from the previous bugs and stuff, perhaps after beta, but what I did in the mean time is get an array of zombies continuously, in a while loop, and then thread a function on each of them in a foreach loop. In this function I would check if a specific attribute was defined, and if it wasn't, then I would define it and thread a function that would waittill death and do what I wanted, or what ever you want to do with this zombie, waittill damage or whatever. If the attribute was defined, I would simply return, meaning I was already tracking this zombies life.
In waw I didn't do things this way, I edited zombiemode or spawner, I forget already which, when they were damaged I would thread my function with my checks.