Hello Knights of unity Answers.
I have stumbled upon this kind of annoying problem with my AI. Everything is up and running fine, he chases the player until close enough to hit, then stands still and hits him, and if the player goes out of range again, he chases him again.
The only thing is, i can’t figure out how to make him actually affect the ‘health’ variable on my player each time he plays the ‘attack’ animation, which is just about once every second. How would i go about with this?
Thanks in advance! Answers much appreciated.