Character won't take damage?

Here are the blueprints

Damage Causer:

46801-damagecauser.png

Damage Receiver:

46802-damagetaker.png

Damage Updater: (Updates HUD to display new health status)

46803-damageupdater.png

To debug this, you will want to start with a check to see if the cast is failing or if the overlap is not occurring. Add a breakpoint to the Cast to First Person Character node and another to the “Take Damage” node.

When you play and try to trigger damage, the first breakpoint will activate and that will prove you are successfully overlapping. If that does not trigger, then you probably need to change the collision options of the overlapping actors so they both overlap and not ignore eachother.

If the first breakpoint happens, then the overlap is fine and you can see if the cast is failing. If the second breakpoint (the one for the function) does not occur, then your cast is failing. Most likely it is because the overlapping actor is not of the type you are attempting to cast to.

You will probably want to also put in a series of “print string” nodes in between other functions, so you can see how far your logic gets before it is failing.

I hope that helps!

What do you mean over lapping actor?

The event you have is “Event ActorBeginOverlap” which has the output of “Other Actor”. The blueprints that are running into each other to activate the event are the “overlapping actors”.

More information about overlap and collision here:

Okay, so all the nodes are working! However, the health is still not being set to minus 1 from it’s current state

Perhaps these pictures will help?