Closed milesbr0 closed 5 years ago
I dunno if you are working in the existing CheckAI script, since we already have one. If that's the case try either using the existing one, or create a separate one.
We can try adding an extra variable to the AI that is only accessed by your script for this reason
I've managed to fix it by increasing the respawn time of the zombies
I was trying to implement a combo system where if you kill a zombie it would start a 5 second timer, if you were to kill a zombie within that 5 seconds, the timer would reset thus giving you extra points and exp etc.
The issue is my script can't seem to detect whether a zombie was killed... I've tried to do it the same way as it was already done in the CheckAI script: void Update() { Ai = FindObjectsOfType anglebrackets AICollision anglebrackets (); for (int i = 0; i < Ai.Length; i++) { if (Ai[i].isDead) { CountDown(); } } }
^Is this the right way to do it ? Any suggestions?
p.s.: I just reinstalled windows on my laptop so I can't attach any screenshots forgive me for that. I'll make sure to make some and update the issue once I got everything installed properly.