Postby rdsandersjr » Thu Nov 07, 2013 4:05 pm
So lets say I am fighting a zombie, and another one comes up and starts attacking me, and I die then it will spawn reanimated corpses * the amount of zombies attacking me?
If that is the case you need to re-think your logic, as it stands now, this is what your script is doing.
If one zombie is attacking the player and player dies, it works correct?
If two zombies is attacking the player and the player dies, it will summon two zombies?
Your script is working correctly. What you need to-do in my opinion is don't override enemykilled but to override dies in gameplayer.cs and do a check if the mob killing the player is a zombie, then spawn 1.
Each "attacker / zombie" that is killing the player is summoning one zombie because each because its enemeykilled events are firing.
Thanks,
RDSandersJR