1. Home
  2. Docs
  3. FAQ
  4. Attacks are not doing damage. Hits don’t register.

Attacks are not doing damage. Hits don’t register.

The current animations all have animation events added to them. These events tell the code when it is time to check if something was hit. Preferably you want this to happen at a certain time in the animation. For example when an arm or leg is completely stretched out. When working with new animations, you need to add these events manually.

  1. Click on the file that contains the animation.
  2. In the inspector, select the Animation tab at the top. (Models / Rig / Animation / Materials).
  3. In the inspector, select an animation clip.
  4. Scroll down until you see a rollout called ‘Events’.

When you expand this tab you see a timeline. On this timeline you can add events. In the “Function” textfield type “Check4Hit”. Hit “Apply” and the system will check for hits at that point in the animation.