Hello, I completed the RPG Core Combat Creator and the other RPG courses. The death animation is not triggering. I have inserted all the methods in an animation event that I could think of that calls the Die() method, and it didn’t work. I checked the transition from any state to the death state and it is correct. I need help, thank you in advance.
My first thought is it may be related to the error messages. Any time a script encounters an error, it effectively stops working. In the case of the NavMesh errors, that isn’t likely to affect the Death state, but we may want to investigate the first one… trying to instantiate an item that is null. Click on that error and there should be a stack trace, a list of method calls leading up to the null reference with line numbers. The first script is generally the culprit.
The NavMesh error seems to be saying that at least one of your characters is too far away from the NavMesh (or that the NavMesh isn’t baked).
Let’s start with a look at your Health.cs. Be sure to paste in the text of the script, not a screenshot.
@Brian_Trotter I fixed it, I had to create a drop library for the inventory and add something to it in the inspector. So I create a prototype coin drop when the enemy is defeated. Thank you for pointing out my errors and teaching me.