Download

Text on Kill or hit

I was wanting to display text on the player’s screen when they kill an enemy, but I can’t figure out how to connect widgets to damage events, anyone know how?

There are blueprint interfaces or event dispatchers which are two approaches to having your blueprints talk to each other.

Blueprint interfaces sounds like the best route for your needs. The enemy can broadcast an event when they die and for any blueprint (your widget) that listens for this interface call, you can perform whatever logic you want. Be sure to add the interface to any receivers (your widget) in the class defaults area of the blueprint.

Check out everything about blueprint communication here, by Zac Parrish: https://www.google.com/url?sa=t&sour…0Ug4TplYSUOcRb

You can also search for “blueprint communication” for more info in the unreal docs and internet.

^^^ This!

I’d recommend having the game mode control Kill feed messages (data).