Clearing player score upon "Death Animation"

I would like to clear all the points the player earned in a level if they die. What’s the catch?: Death is determined by weather or not a specific animation is called. Is there a way to recognize if the death animation was played in the animgraph and if so subtract the points earned in the level from the score and total score (Instance)?

I am new to unreal so detailed explanations are much appreciated. Also I’m a visual learned so any videos or pictures would be an even greater help.

Cheers

,The way I would do this:

  1. Go into your animation blueprint.

  2. Fully open one of the animations by double clicking on it (You can do this from the animation list or the state machines themselves). You’ll see that animation playing with the timeline underneath.

  3. Right-click on the timeline and choose ‘Add Notify’ → ‘New Notify’. Name it (I’ve named it ‘TestNotify’ here.

  1. Switch to the graph area within the animation blueprint and open the event graph.

  2. Right-click and type the name of your notify.

69273-animationevent2.png

  1. Do something here to inform the game that you want deduct the points. (i.e. find the player class and call a function).

Thank you, for taking the time to answer my question. This is exactly what I needed!

Thanks again

Cheers